Mercurial > libervia-templates
annotate sat_templates/templates/bulma/blog/discover.html @ 258:5e51ce9376ed
bulma (photo/album): only show upload area/button if user is owner of the album
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 Aug 2020 17:01:31 +0200 |
parents | 1928ba66c194 |
children | c08fadf23c46 |
rev | line source |
---|---|
230 | 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') }} | |
10 | |
11 <section class="section"> | |
12 <article class="message has-text-centered"> | |
13 <div class="message-body"> | |
14 {% trans %} | |
15 Please select the blog you want to consult | |
16 {% endtrans %} | |
17 </div> | |
18 </article> | |
19 </section> | |
20 | |
21 <section class="section disco_blogs"> | |
22 <div class="columns is-mobile is-multiline"> | |
23 {% for entity in disco_entities %} | |
24 <div class="column is-2-desktop is-4-touch"> | |
25 <div class="card x-is-hoverable"> | |
26 <a href="{{entities_url[entity]}}" class="items_vert--centered"> | |
246
1928ba66c194
bulma: replaced custom styles by new spacing helpers
Goffi <goffi@goffi.org>
parents:
230
diff
changeset
|
27 <div class="card-image is-flex has-items-centered px-1 py-1"> |
230 | 28 {{ avatar.avatar(entity, "is-64x64") }} |
29 </div> | |
246
1928ba66c194
bulma: replaced custom styles by new spacing helpers
Goffi <goffi@goffi.org>
parents:
230
diff
changeset
|
30 <div class="card-content has-text-centered has-text-shortenable px-1 py-1"> |
230 | 31 <span>{{ identities[entity].nicknames[0] if identities[entity].nicknames else entity }}</span> |
32 </div> | |
33 </a> | |
34 </div> | |
35 </div> | |
36 {% endfor %} | |
37 </div> | |
38 </section> | |
39 | |
40 <section class="section"> | |
41 <p class="content">{% trans %}Or enter the jid of a blog writer{% endtrans %}</p> | |
42 {% call form.form(class="form--single") %} | |
43 {{ field.text("jid", _("blog writer jid"), required=true)}} | |
44 {{ field.submit(_("Consult")) }} | |
45 {% endcall %} | |
46 </section> | |
47 {% endblock body %} |