comparison sat_templates/templates/bulma/blog/discover.html @ 405:5016fb0ff62f default tip

Blog redesign: work in progress redesign of the blog. Some templates have been moved from chat to components to be re-used in other features, like blog here. Blog follows same global design as chat with a left panel to search/open blogs.
author Goffi <goffi@goffi.org>
date Wed, 21 May 2025 15:41:00 +0200
parents 66f98ee041d8
children
comparison
equal deleted inserted replaced
404:66f98ee041d8 405:5016fb0ff62f
1 {% extends 'base/base.html' %}
2 {% import 'components/block.html' as block %}
3 {% import 'components/images.html' as images with context %}
4 {% import 'components/avatar.html' as avatar with context %}
5 {% import 'input/form.html' as form with context %}
6 {% import 'input/field.html' as field with context %}
7
8 {% block body %}
9 {{ icon_defs('blog', 'pencil') }}
10
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 %}
17 <article class="message has-text-centered">
18 <div class="message-body">
19 {% trans %}
20 Please select the blog you want to consult
21 {% endtrans %}
22 </div>
23 </article>
24 <div class="columns is-mobile is-multiline">
25 {% for entity in disco_entities %}
26 <div class="column is-2-desktop is-4-touch">
27 <div class="card x-is-hoverable">
28 <a href="{{entities_url[entity]}}" class="items_vert--centered">
29 <div class="card-image is-flex has-items-centered px-1 py-1">
30 {{ avatar.avatar(entity, "is-64x64") }}
31 </div>
32 <div class="card-content has-text-centered has-text-shortenable px-1 py-1">
33 <span>{{ identities[entity].nicknames[0] if identities[entity].nicknames else entity }}</span>
34 </div>
35 </a>
36 </div>
37 </div>
38 {% endfor %}
39 </div>
40 </section>
41
42 <section class="section">
43 <p class="content">{% trans %}Or enter the jid of a blog writer{% endtrans %}</p>
44 {% call form.form(class="form--single") %}
45 {{ field.text("jid", _("blog writer jid"), required=true)}}
46 {{ field.submit(_("Consult")) }}
47 {% endcall %}
48 </section>
49 {% endblock body %}