comparison default/blog/item.html @ 32:16818343fc43

blog/item: use date_days instead of blog_date + fr translation
author Goffi <goffi@goffi.org>
date Sat, 24 Jun 2017 21:50:24 +0200
parents 69a2e3bf5e17
children 5fd910d48192
comparison
equal deleted inserted replaced
31:2d5c4030cac5 32:16818343fc43
14 {% block header %} 14 {% block header %}
15 <div class="title">{% block blog_title %}{{ item.title_xhtml or item.title or '' }}{% endblock %}</div> 15 <div class="title">{% block blog_title %}{{ item.title_xhtml or item.title or '' }}{% endblock %}</div>
16 {% block metadata %} 16 {% block metadata %}
17 <div class="metadata"> 17 <div class="metadata">
18 <span class="author">{{identities[item.author_jid].nick | default(item.author)}}</span> 18 <span class="author">{{identities[item.author_jid].nick | default(item.author)}}</span>
19 <span class="blog_data">{{item.published | blog_date}}</span> 19 <span class="blog_data">{% trans days=item.published|date_days %}{{days}} days ago{% endtrans %}</span>
20 </div> 20 </div>
21 21
22 {% endblock metadata %} 22 {% endblock metadata %}
23 {% endblock header %} 23 {% endblock header %}
24 </header> 24 </header>