Librarian in regular requirements.
[redakcja.git] / apps / catalogue / templates / catalogue / wall.html
1 {% load i18n %}
2 {% load gravatar %}
3 {% load email %}
4 {% load username from common_tags %}
5
6 <ul class='wall'>
7 {% for item in wall %}
8     <li class="{{ item.tag }}{% if not item.user %} anonymous{% endif %}">
9         <div class='gravatar'>
10             {% if item.get_email %}
11                 <img src="{% gravatar_url item.get_email 32 %}"
12                     height="32" width="32" alt='Avatar' />
13                 <br/>
14             {% endif %}
15         </div>
16
17         <div class="time">{{ item.timestamp }}</div>
18         <h3>{{ item.header }}</h3>
19         <a target="_blank" href='{{ item.url }}'>{{ item.title }}</a>
20         <br/><strong>{% trans "user" %}:</strong>
21         {% if item.user %}
22             <a href="{% url 'catalogue_user' item.user.username %}">
23             {{ item.user|username }}</a>
24             &lt;{{ item.user.email|email_link }}>
25         {% else %}
26             {{ item.user_name }}
27             {% if item.email %}
28                 &lt;{{ item.email|email_link }}>
29             {% endif %}
30             ({% trans "not logged in" %})
31         {% endif %}
32         <br/>{{ item.summary|linebreaksbr }}
33     </li>
34 {% empty %}
35     <li>{% trans "No activity recorded." %}</li>
36 {% endfor %}
37 </ul>