diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-02-25 12:46:46 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-02-25 12:46:46 +0100 |
commit | bc6a1747e2677580cbed970cb895b558961acd3a (patch) | |
tree | 5ff219ff233d3f34fe607e69b35daa1b38afb48a | |
parent | 7da2ffeb8b453de13aff3e5b3e02a763b05b5f13 (diff) | |
download | Ishtar-bc6a1747e2677580cbed970cb895b558961acd3a.tar.bz2 Ishtar-bc6a1747e2677580cbed970cb895b558961acd3a.zip |
Templates: add comma_list to simplify comma separated list.
-rw-r--r-- | ishtar_common/templates/blocks/comma_list.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ishtar_common/templates/blocks/comma_list.html b/ishtar_common/templates/blocks/comma_list.html new file mode 100644 index 000000000..12fcd2b41 --- /dev/null +++ b/ishtar_common/templates/blocks/comma_list.html @@ -0,0 +1 @@ +{% load i18n %}{% if not forloop.last %}{% ifequal forloop.revcounter 2 %} {% trans "and" %} {% else %}{% trans ", "%}{% endifequal %}{% else %}{% trans "." %}{% endif %} |