Mercurial > libervia-templates
comparison sat_templates/templates/bulma/blog/discover.html @ 321:c08fadf23c46
bulma (blog/discover): new "new post" button to publish a new post
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 29 Apr 2021 16:56:20 +0200 |
parents | 1928ba66c194 |
children |
comparison
equal
deleted
inserted
replaced
320:b9e04a8a45c3 | 321:c08fadf23c46 |
---|---|
4 {% import 'components/avatar.html' as avatar with context %} | 4 {% import 'components/avatar.html' as avatar with context %} |
5 {% import 'input/form.html' as form with context %} | 5 {% import 'input/form.html' as form with context %} |
6 {% import 'input/field.html' as field with context %} | 6 {% import 'input/field.html' as field with context %} |
7 | 7 |
8 {% block body %} | 8 {% block body %} |
9 {{ icon_defs('blog') }} | 9 {{ icon_defs('blog', 'pencil') }} |
10 | 10 |
11 <section class="section"> | 11 <section class="section"> |
12 {% if url_blog_edit is defined %} | |
13 <div class="content has-items-centered is-flex"> | |
14 {{ component.action_button(url_blog_edit, _("new post"), "pencil") }} | |
15 </div> | |
16 {% endif %} | |
12 <article class="message has-text-centered"> | 17 <article class="message has-text-centered"> |
13 <div class="message-body"> | 18 <div class="message-body"> |
14 {% trans %} | 19 {% trans %} |
15 Please select the blog you want to consult | 20 Please select the blog you want to consult |
16 {% endtrans %} | 21 {% endtrans %} |
17 </div> | 22 </div> |
18 </article> | 23 </article> |
19 </section> | |
20 | |
21 <section class="section disco_blogs"> | |
22 <div class="columns is-mobile is-multiline"> | 24 <div class="columns is-mobile is-multiline"> |
23 {% for entity in disco_entities %} | 25 {% for entity in disco_entities %} |
24 <div class="column is-2-desktop is-4-touch"> | 26 <div class="column is-2-desktop is-4-touch"> |
25 <div class="card x-is-hoverable"> | 27 <div class="card x-is-hoverable"> |
26 <a href="{{entities_url[entity]}}" class="items_vert--centered"> | 28 <a href="{{entities_url[entity]}}" class="items_vert--centered"> |