Mercurial > libervia-templates
comparison sat_templates/templates/bulma/forum/overview.html @ 246:1928ba66c194
bulma: replaced custom styles by new spacing helpers
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 Jun 2020 17:57:13 +0200 |
parents | 0e69b5843c2f |
children |
comparison
equal
deleted
inserted
replaced
245:10278ba367a2 | 246:1928ba66c194 |
---|---|
2 | 2 |
3 {% macro generate_forums(forums_data, level=0) %} | 3 {% macro generate_forums(forums_data, level=0) %} |
4 {% if level == 0 %} | 4 {% if level == 0 %} |
5 <section class="section"> | 5 <section class="section"> |
6 {% for forum in forums_data %} | 6 {% for forum in forums_data %} |
7 <div class="box content has-text-centered has-background-info has-margin-top-1"> | 7 <div class="box content has-text-centered has-background-info mt-4"> |
8 <h4 class="title has-text-white">{{ forum.title }}</h4> | 8 <h4 class="title has-text-white">{{ forum.title }}</h4> |
9 {% if 'short-desc' in forum %} | 9 {% if 'short-desc' in forum %} |
10 <p class="subtitle is-size-7 is-italic has-text-white">{{ forum['short-desc'] }}</h5> | 10 <p class="subtitle is-size-7 is-italic has-text-white">{{ forum['short-desc'] }}</h5> |
11 {% endif %} | 11 {% endif %} |
12 </div> | 12 </div> |
16 {% endfor %} | 16 {% endfor %} |
17 </section> | 17 </section> |
18 {% else %} | 18 {% else %} |
19 <div class="forum forum__panel_{{panel_type}}"> | 19 <div class="forum forum__panel_{{panel_type}}"> |
20 {% for forum in forums_data %} | 20 {% for forum in forums_data %} |
21 <div class="has-vmargin-1 forum forum__cat_{{panel_type}} forum__level_{{level}}"> | 21 <div class="my-2 forum forum__cat_{{panel_type}} forum__level_{{level}}"> |
22 {% if 'http_url' in forum %} | 22 {% if 'http_url' in forum %} |
23 <a href="{{forum['http_url']}}" class="box content x-is-hoverable"> | 23 <a href="{{forum['http_url']}}" class="box content x-is-hoverable"> |
24 {% else %} | 24 {% else %} |
25 <a class="box content"> | 25 <a class="box content"> |
26 {% endif %} | 26 {% endif %} |