Mercurial > libervia-templates
annotate default/blog/item.html @ 27:38328c57f3ef
field: added new text and textarea macros
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 24 Jun 2017 20:23:40 +0200 |
parents | 2496887339f6 |
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 %} |