From 3e04e093dd7bde61f27213045091463a0addc356 Mon Sep 17 00:00:00 2001 From: FELD Boris Date: Fri, 8 Apr 2011 13:41:44 +0200 Subject: Add link to article translations in index and article template --- notmyidea-cms/templates/article.html | 7 ++++--- notmyidea-cms/templates/index.html | 15 ++++++++------- notmyidea-cms/templates/translations.html | 6 ++++++ 3 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 notmyidea-cms/templates/translations.html (limited to 'notmyidea-cms') diff --git a/notmyidea-cms/templates/article.html b/notmyidea-cms/templates/article.html index 8b5e5ba..aaadfcd 100644 --- a/notmyidea-cms/templates/article.html +++ b/notmyidea-cms/templates/article.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block title %}{{ article.title }}{% endblock %} -{% block content %} -
+{% block content %} +

{{ article.title @@ -16,8 +16,9 @@ By {{ article.author }} {% endif %} -

In {{ article.category }}. +

In {{ article.category }}. {% include 'taglist.html' %} + {% include 'translations.html' %} {{ article.content }} diff --git a/notmyidea-cms/templates/index.html b/notmyidea-cms/templates/index.html index d822249..1425b5e 100644 --- a/notmyidea-cms/templates/index.html +++ b/notmyidea-cms/templates/index.html @@ -1,13 +1,13 @@ {% extends "base.html" %} {% block content_title %}{% endblock %} -{% block content %} +{% block content %} {% if articles %} -{% for article in articles %} +{% for article in articles %} {% if loop.index == 1 %}

{{ article.date.strftime('%a %d %B %Y') }} @@ -20,6 +20,7 @@ {% endif %}

In {{ article.category }}. {% if PDF_PROCESSOR %}get the pdf{% endif %}

{% include 'taglist.html' %} + {% include 'translations.html' %}
{{ article.content }}
@@ -28,12 +29,12 @@
    {% endif %} - {% else %} -
{% else %} -
+

Pages

{% for page in PAGES %}
  • {{ page.title }}
  • diff --git a/notmyidea-cms/templates/translations.html b/notmyidea-cms/templates/translations.html new file mode 100644 index 0000000..f0a0fa2 --- /dev/null +++ b/notmyidea-cms/templates/translations.html @@ -0,0 +1,6 @@ +{% if article.translations %} +Translations: + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} +{% endif %} \ No newline at end of file -- cgit v1.1