aboutsummaryrefslogtreecommitdiff
path: root/theme/templates/translations.html
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2013-05-08 10:54:59 +0200
committerSébastien Dailly <sebastien@chimrod.com>2013-05-08 15:47:02 +0200
commit22e881fa89e4b3b8f6207d2c2e8713c2ff919400 (patch)
treeaed2733a92661a803801ab8876558d794c62e515 /theme/templates/translations.html
parentfaf19242226324b95ad96cb01d29131e7ba65e50 (diff)
Added articlelogo on main page
Diffstat (limited to 'theme/templates/translations.html')
-rw-r--r--theme/templates/translations.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/theme/templates/translations.html b/theme/templates/translations.html
new file mode 100644
index 0000000..121ff1a
--- /dev/null
+++ b/theme/templates/translations.html
@@ -0,0 +1,10 @@
+{% macro translations_for(article) %}
+{% if article.translations %}
+<details class="meta">
+Traductions :
+{% for translation in article.translations %}
+<a href="{{ SITEURL }}/{{ translation.url }}">{{ translation.lang }}</a>
+{% endfor %}
+</details>
+{% endif %}
+{% endmacro %}