Mercurial > libervia-templates
comparison sat_templates/default/components/block.html @ 147:33c7ce833d3f
install: setup.py fix + moved "default" dir in a "sat_templates" dir:
the merge request at https://bugs.goffi.org/mr/view/3 was a good basis, but not fully working ("default" dir was removed), this patch fixes it, and do some improvments:
- moved "default" in "sat_templates" dir, which correspond to the python module, so it can be found easily from python
- added VERSION, and mercurial hash detection, in the same way as for Cagou and backend
- slight modification of classifiers
- replaces tabs coming from MR by spaces
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 02 Jun 2018 17:25:43 +0200 |
parents | default/components/block.html@85877c76d47d |
children |
comparison
equal
deleted
inserted
replaced
146:7dc00829c32f | 147:33c7ce833d3f |
---|---|
1 {% macro separator(label, align='center') %} | |
2 {# display a bloc separator | |
3 @param label(unicode): label to show | |
4 @param align(unicode): one of "left", "center", "right" | |
5 #} | |
6 <div class="block_separator"> | |
7 {% if align in ('center', 'right') %} | |
8 <div class="block_separator__line"></div> | |
9 {% endif %} | |
10 <div class="block_separator__label"> | |
11 {{label}} | |
12 </div> | |
13 {% if align in ('center', 'left') %} | |
14 <div class="block_separator__line"></div> | |
15 {% endif %} | |
16 </div> | |
17 {% endmacro %} | |
18 | |
19 {% macro disco_icon_grid(disco_entities, icon_name) %} | |
20 {# display discovered entities in a grid | |
21 @param disco_entities: entities which mush have a name and url key or attribute | |
22 @param icon_name: name of a defined icon | |
23 #} | |
24 <ul class="grid grid--center"> | |
25 {% for disco_entity in disco_entities %} | |
26 <li class='grid__item grid__item--medium grid__item--selectable'> | |
27 <a href="{{disco_entity.url}}" class="items_vert--centered"> | |
28 {{ icon(icon_name, cls='icon--medium') }} | |
29 <span>{{ disco_entity.name }}</span> | |
30 </a> | |
31 </li> | |
32 {% endfor %} | |
33 </ul> | |
34 {% endmacro %} |