changeset 265:ae365c036a58

bulma (blog/item): title are now clickable like in default theme
author Goffi <goffi@goffi.org>
date Sun, 02 Aug 2020 22:30:31 +0200
parents 2c282c244a3e
children 7448aac005a1
files sat_templates/templates/bulma/blog/item.html
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/blog/item.html	Sun Aug 02 20:58:21 2020 +0200
+++ b/sat_templates/templates/bulma/blog/item.html	Sun Aug 02 22:30:31 2020 +0200
@@ -25,8 +25,15 @@
         {% endif %}
         <div class="media-content">
             {% set title = item.title_xhtml|safe or item.title%}
+            {% set item_http_uri = items_http_uri.get(item.id) if items_http_uri is defined else none %}
             {% if title %}
-                <h4 class="title is-4">{{title}}</h1>
+                <h4 class="title is-4">
+                    {% if item_http_uri %}
+                        <a href="{{item_http_uri}}" class="has-text-black">{{title}}</a>
+                    {% else %}
+                        {{title}}
+                    {% endif %}
+                </h4>
             {% endif %}
             <div class="content">
                 <p class="subtitle is-6 has-text-grey">