changeset 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 b9e04a8a45c3
children 11ed664a309c
files sat_templates/templates/bulma/blog/discover.html
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/blog/discover.html	Thu Apr 29 16:30:02 2021 +0200
+++ b/sat_templates/templates/bulma/blog/discover.html	Thu Apr 29 16:56:20 2021 +0200
@@ -6,9 +6,14 @@
 {% import 'input/field.html' as field with context %}
 
 {% block body %}
-{{ icon_defs('blog') }}
+{{ icon_defs('blog', 'pencil') }}
 
 <section class="section">
+    {% if url_blog_edit is defined %}
+            <div class="content has-items-centered is-flex">
+            {{ component.action_button(url_blog_edit, _("new post"), "pencil") }}
+            </div>
+    {% endif %}
     <article class="message has-text-centered">
         <div class="message-body">
             {% trans %}
@@ -16,9 +21,6 @@
             {% endtrans %}
         </div>
     </article>
-</section>
-
-<section class="section disco_blogs">
     <div class="columns is-mobile is-multiline">
         {% for entity in disco_entities %}
             <div class="column is-2-desktop is-4-touch">