fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DOM tree modification functions
[redakcja.git]
/
apps
/
catalogue
/
templates
/
catalogue
/
wall.html
diff --git
a/apps/catalogue/templates/catalogue/wall.html
b/apps/catalogue/templates/catalogue/wall.html
index
0e4597e
..
9227ba1
100755
(executable)
--- a/
apps/catalogue/templates/catalogue/wall.html
+++ b/
apps/catalogue/templates/catalogue/wall.html
@@
-1,32
+1,35
@@
{% load i18n %}
{% load gravatar %}
{% load i18n %}
{% load gravatar %}
+{% load email %}
-<ul class='wall'
style='padding-left: 0; list-style: none;'
>
+<ul class='wall'>
{% for item in wall %}
{% for item in wall %}
- <li
style='clear: left; border-top: 1px dotted gray; padding-bottom:1em; margin-bottom: 1em;'
>
- <div
style='float: left;margin-right: 1em;
'>
+ <li
class="{{ item.tag }}{% if not item.user %} anonymous{% endif %}"
>
+ <div
class='gravatar
'>
{% if item.get_email %}
{% gravatar_img_for_email item.get_email 32 %}
<br/>
{% endif %}
{% if item.get_email %}
{% gravatar_img_for_email item.get_email 32 %}
<br/>
{% endif %}
-
- <!--img src='{{ STATIC_URL }}img/wall/{{ item.tag}}.png' alt='{% trans item.tag %}' /-->
</div>
</div>
- {{ item.timestamp }}
- <br/>
+ <div class="time">{{ item.timestamp }}</div>
+ <h3>{{ item.header }}</h3>
+ <a target="_blank" href='{{ item.url }}'>{{ item.title }}</a>
+ <br/><strong>{% trans "user" %}:</strong>
{% if item.user %}
<a href="{% url catalogue_user item.user.username %}">
{{ item.user.first_name }} {{ item.user.last_name }}</a>
{% if item.user %}
<a href="{% url catalogue_user item.user.username %}">
{{ item.user.first_name }} {{ item.user.last_name }}</a>
- <{{ item.user.email }}>
+ <{{ item.user.email
|email_link
}}>
{% else %}
{{ item.user_name }}
{% else %}
{{ item.user_name }}
- {% if item.
get_
email %}
- <{{ item.
get_email
}}>
+ {% if item.email %}
+ <{{ item.
email|email_link
}}>
{% endif %}
{% endif %}
+ ({% trans "not logged in" %})
{% endif %}
{% endif %}
- <br/><a target="_blank" href='{{ item.url }}'>{{ item.title }}</a>
- <br/>{{ item.summary }}
- </li>
+ <br/>{{ item.summary|linebreaksbr }}
+ </li>
+{% empty %}
+ <li>{% trans "No activity recorded." %}</li>
{% endfor %}
</ul>
{% endfor %}
</ul>