Skip to content

Commit

Permalink
[IMP] Add language management for theme tuxlite_tbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain GARANCHER committed Aug 28, 2013
1 parent 0efd364 commit 21588b2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tuxlite_tbs/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ DEFAULT_LANG }}">
<head>
<meta charset="utf-8">
<title>{% block windowtitle %}{{ SITENAME }}{% endblock %}</title>
Expand Down
6 changes: 6 additions & 0 deletions tuxlite_tbs/templates/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

{% if article.author %}
by <a class="url fn" href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a>
{% if article.translations %}
<a href="{{ SITEURL }}/{{ article.url }}" class="btn btn-info xsmall">{{ article.lang or DEFAULT_LANG }}</a>
{% for translation in article.translations %}
<a href="{{ SITEURL }}/{{ translation.url }}" class="btn btn-info xsmall">{{ translation.lang }}</a>&nbsp;
{% endfor %}
{% endif %}
{% endif %}

{# Filed under <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a> #}
Expand Down
10 changes: 9 additions & 1 deletion tuxlite_tbs/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 21588b2

Please sign in to comment.