Mercurial > libervia-templates
comparison default/forum/overview.html @ 119:b085ede4d9af
forum/overview: forum template first draft.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 30 Jan 2018 07:48:50 +0100 |
parents | |
children | efbf5423d7be |
comparison
equal
deleted
inserted
replaced
118:c744170fd597 | 119:b085ede4d9af |
---|---|
1 {% extends 'base/base.html' %} | |
2 | |
3 {% macro generate_forums(forums_data) %} | |
4 <ul class="forum"> | |
5 {% for forum in forums_data %} | |
6 <li> | |
7 {% if 'http_url' in forum %} | |
8 <a href="{{forum['http_url']}}" class="forum_actif"> | |
9 {% else %} | |
10 <a> | |
11 {% endif %} | |
12 <span class="forum_title">{{ forum.title }}</span> | |
13 {% if 'short-desc' in forum %} | |
14 <p class="forum_short-desc">{{ forum['short-desc'] }}</p> | |
15 {% endif %} | |
16 </a> | |
17 | |
18 {% if 'sub-forums' in forum %} | |
19 {{ generate_forums(forum['sub-forums']) }} | |
20 {% endif %} | |
21 </li> | |
22 {% endfor %} | |
23 </ul> | |
24 {% endmacro %} | |
25 | |
26 {% block body %} | |
27 <div id="forums"> | |
28 {{ generate_forums(forums) }} | |
29 </div> | |
30 {% endblock body %} |