Mercurial > libervia-templates
annotate default/blog/item.html @ 24:2496887339f6
defaut (blog/item): use new identities object for author field
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 23 May 2017 00:07:19 +0200 |
parents | 8fa2fd2e928e |
children | 69a2e3bf5e17 |
rev | line source |
---|---|
0 | 1 {% block item %} |
16
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
2 <article id="{{ item.id }}" class="box" onclick="this.classList.toggle('clicked')"> |
0 | 3 <header> |
4 {% block header %} | |
5 <div class="title">{% block blog_title %}{{ item.title_xhtml or item.title or '' }}{% endblock %}</div> | |
16
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
6 {% block metadata %} |
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
7 <div class="metadata"> |
24
2496887339f6
defaut (blog/item): use new identities object for author field
Goffi <goffi@goffi.org>
parents:
20
diff
changeset
|
8 <span class="author">{{identities[item.author_jid].nick | default(item.author)}}</span> |
16
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
9 <span class="blog_data">{{item.published | blog_date}}</span> |
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
10 </div> |
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
11 |
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
12 {% endblock metadata %} |
0 | 13 {% endblock header %} |
14 </header> | |
15 | |
16 <div class="content"> | |
17 {% block content %} | |
18 {{ item.content_xhtml or item.content or ''}} | |
19 {% endblock content %} | |
20 </div> | |
16
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
21 |
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
22 <div class="expand_box"> |
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
23 <p> |
20 | 24 {% trans %}Click to to expand…{% endtrans %} |
16
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
25 </p> |
8cdcbe0d7dee
blog: various appareance improvments:
Goffi <goffi@goffi.org>
parents:
0
diff
changeset
|
26 </div> |
0 | 27 </article> |
28 {% endblock item %} |