# HG changeset patch # User Goffi # Date 1592582233 -7200 # Node ID 10278ba367a2bc465b57f9c483271997aba73e3f # Parent a62822c6a114edf325369a95d93421980f3694cc bulma (photo/discover): design for the new theme + create button + delete button diff -r a62822c6a114 -r 10278ba367a2 sat_templates/templates/bulma/components/block.html --- a/sat_templates/templates/bulma/components/block.html Fri Jun 19 17:57:13 2020 +0200 +++ b/sat_templates/templates/bulma/components/block.html Fri Jun 19 17:57:13 2020 +0200 @@ -50,10 +50,14 @@ #}
{% for interest in interests %} -
- {% endfor %} diff -r a62822c6a114 -r 10278ba367a2 sat_templates/templates/bulma/photo/discover.html --- a/sat_templates/templates/bulma/photo/discover.html Fri Jun 19 17:57:13 2020 +0200 +++ b/sat_templates/templates/bulma/photo/discover.html Fri Jun 19 17:57:13 2020 +0200 @@ -4,8 +4,24 @@ {% import 'input/field.html' as field with context %} {% block body %} -{{ icon_defs('file-image') }} +{{ icon_defs('file-image', 'trash-empty') }}
+
+ {{ component.action_button(url_photos_new) }} +
+ {% if interests is defined %} +
+
+ {% trans nb_interests=interests|length%} + You have currently {{nb_interests}} album in your personal list + {% pluralize %} + You have currently {{nb_interests}} albums in your personal list + {% endtrans %} +
+
+ + {{block.interests_grid(interests, 'file-image')}} + {% endif %}
{% trans %} @@ -13,20 +29,9 @@ {% endtrans %}
+ {% call form.form(class="form--single") %} + {{ field.text("jid", _("device full jid"), required=true)}} + {{ field.submit(_("Access")) }} + {% endcall %}
-{% if interests is defined %} -

- {% trans nb_interests=interests|length%} - You have currently {{nb_interests}} album in your personal list - {% pluralize %} - You have currently {{nb_interests}} albums in your personal list - {% endtrans %} -

- - {{block.interests_grid(interests, 'file-image')}} -{% endif %} -{% call form.form(class="form--single") %} - {{ field.text("jid", _("device full jid"), required=true)}} - {{ field.submit(_("Access")) }} -{% endcall %} {% endblock body %}