diff themes/tuxlite_tbs/templates/page.html @ 42:51d2ddc51e40

update the theme with the latest changes from upstream
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 30 Sep 2014 03:53:59 +0200
parents 6e2bcaecf3ec
children
line wrap: on
line diff
--- a/themes/tuxlite_tbs/templates/page.html	Tue Sep 30 03:37:41 2014 +0200
+++ b/themes/tuxlite_tbs/templates/page.html	Tue Sep 30 03:53:59 2014 +0200
@@ -2,7 +2,15 @@
 {% block title %} {% endblock %}
 {% block content %}        
 <section id="content" class="body">    
-    <h2 class="content-title">{{ page.title }}</h2>
+    <h2 class="content-title">
+        {{ page.title }}
+        {% if page.translations %}
+            <a href="{{ SITEURL }}/{{ page.url }}" class="btn btn-info xsmall">{{ page.lang or DEFAULT_LANG }}</a>
+            {% for translation in page.translations %}
+                <a href="{{ SITEURL }}/{{ translation.url }}" class="btn btn-info xsmall">{{ translation.lang }}</a>&nbsp;
+            {% endfor %}
+        {% endif %}
+    </h2>
     {% if PDF_PROCESSOR %}<a href="{{ SITEURL }}/pdf/{{ page.slug }}.pdf">get
     the pdf</a>{% endif %}
     {{ page.content }}