summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/blocks/window_tables/documents.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-10-28 19:31:45 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-10-28 19:31:45 +0100
commit5889915d68867862c2f37866e8f8bf949c01e06e (patch)
treee2d718346323d03543af43ec1b32e5d38621866e /ishtar_common/templates/ishtar/blocks/window_tables/documents.html
parent6b5ac2a50430316d82cf1758c895757b50232917 (diff)
downloadIshtar-5889915d68867862c2f37866e8f8bf949c01e06e.tar.bz2
Ishtar-5889915d68867862c2f37866e8f8bf949c01e06e.zip
Templates: list all dependant documents
New template tags for displaying table of documents
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks/window_tables/documents.html')
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_tables/documents.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_tables/documents.html b/ishtar_common/templates/ishtar/blocks/window_tables/documents.html
new file mode 100644
index 000000000..9405bc3e8
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/window_tables/documents.html
@@ -0,0 +1,21 @@
+{% load i18n %}
+<table>
+ <caption>{{caption}}</caption>
+ <tr>
+ <th>{% trans "Title" %}</th>
+ <th>{% trans "Type" %}</th>
+ <th>{% trans "Authors" %}</th>
+ <th>{% trans "Related to" %}</th>
+ <th>{% trans "Link" %}</th>
+ </tr>
+ {% for doc in data %}
+ <tr>
+ <td class='string'>{{ doc.title }}</td>
+ <td class='string'>{{doc.source_type}}</td>
+ <td class='string'>{{ doc.authors.all|join:", " }}</td>
+ <td class='string'><a href="#" onclick='load_window("{{doc.owner.show_url}}")'>{{doc.owner.short_label}}</a></td>
+ <td class='string'>{% if doc.associated_url %}<a href='{{doc.associated_url}}'>{% trans "Link"%}</a>{% endif %}</td>
+ </tr>
+ {% endfor %}
+</table>
+