tweaks + add translation stuff in the theme

This commit is contained in:
Alexis Metaireau 2012-03-31 17:09:30 +02:00
parent c1f39570ab
commit 5193ba28a3
4 changed files with 17 additions and 7 deletions

View file

@ -6,7 +6,6 @@ Carto-forms
:author: Alexis Métaireau, Mathieu Leplatre
:tags: GIS, forms
:lang: fr
:status: draft
On a un plan. Un "truc de ouf".

View file

@ -6,9 +6,8 @@ Carto-forms
:author: Alexis Métaireau, Mathieu Leplatre
:tags: GIS, forms
:lang: en
:status: draft
We have a plan.
We have a plan. A "fucking good" one.
A bunch of friends asked me twice for quite the same thing: a webpage with a
form, tied to a map generation with some information filtering. They didn't

View file

@ -1,7 +1,15 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ article.title }}</h1>
<p class="date">Published on {{ article.locale_date }}</p>
<p class="date">{% if article.lang == "fr" %}Publié le{% else %}Published
on{% endif%} {{ article.locale_date }}.
{% if article.translations %}
{% if article.lang == "fr" %}Vous pouvez aussi lire cet article en {% else %}You can also read this article in {% endif %}
{% for tr in article.translations %}
<a href="{{ SITEURL }}/{{ tr.url}}">{{ tr.lang }}</a>
{% endfor %}
{% endif %}
</p>
{{ article.content }}
{% if DISQUS_SITENAME %}

View file

@ -2,11 +2,15 @@
{% block content %}
<p>Hey, I'm Alexis and this is my blog. I try to talk about freedom, free
software and activistm. I'm currently spending my days in Paris, doing
python for the mozilla services team.</p>
software and activism. I'm currently spending my days in Paris, doing
python at mozilla, on the services team.</p>
{% for article in articles %}
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
{% if article.translations %}
<small>(also in {% for article in article.translations %}<a href="{{ SITEURL }}/{{ article.url }}">{{ article.lang }}</a>{% endfor %})</small>
{% endif %}
</h2>
<p class="date">{{ article.locale_date }}</p>
{% if article.description %}
<p class="description">{{ article.description }}</p>