From c10b0bac3f5d5ee61d7789de4db0fbb18dd666d3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 28 Oct 2013 19:31:45 +0100 Subject: Templates: list all dependant documents New template tags for displaying table of documents --- .../ishtar/blocks/window_tables/documents.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ishtar_common/templates/ishtar/blocks/window_tables/documents.html (limited to 'ishtar_common/templates') 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 %} + + + + + + + + + + {% for doc in data %} + + + + + + + + {% endfor %} +
{{caption}}
{% trans "Title" %}{% trans "Type" %}{% trans "Authors" %}{% trans "Related to" %}{% trans "Link" %}
{{ doc.title }}{{doc.source_type}}{{ doc.authors.all|join:", " }}{{doc.owner.short_label}}{% if doc.associated_url %}{% trans "Link"%}{% endif %}
+ -- cgit v1.2.3