Rename catalogue to documents.
[redakcja.git] / src / documents / templates / documents / wall.html
diff --git a/src/documents/templates/documents/wall.html b/src/documents/templates/documents/wall.html
new file mode 100644 (file)
index 0000000..5e2ed9a
--- /dev/null
@@ -0,0 +1,37 @@
+{% load i18n %}
+{% load gravatar %}
+{% load email %}
+{% load username from common_tags %}
+
+<ul class='wall'>
+{% for item in wall %}
+    <li class="{{ item.tag }}{% if not item.user %} anonymous{% endif %}">
+        <div class='gravatar'>
+            {% if item.get_email %}
+                <img src="{% gravatar_url item.get_email 32 %}"
+                    height="32" width="32" alt='Avatar' />
+                <br/>
+            {% endif %}
+        </div>
+
+        <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 'documents_user' item.user.username %}">
+            {{ item.user|username }}</a>
+            &lt;{{ item.user.email|email_link }}>
+        {% else %}
+            {{ item.user_name }}
+            {% if item.email %}
+                &lt;{{ item.email|email_link }}>
+            {% endif %}
+            ({% trans "not logged in" %})
+        {% endif %}
+        <br/>{{ item.summary|linebreaksbr }}
+    </li>
+{% empty %}
+    <li>{% trans "No activity recorded." %}</li>
+{% endfor %}
+</ul>