comparison default/components/block.html @ 138:85877c76d47d

merge-request: discovery page
author Goffi <goffi@goffi.org>
date Tue, 27 Mar 2018 08:33:11 +0200
parents ca42dc037bbf
children
comparison
equal deleted inserted replaced
137:efbf5423d7be 138:85877c76d47d
13 {% if align in ('center', 'left') %} 13 {% if align in ('center', 'left') %}
14 <div class="block_separator__line"></div> 14 <div class="block_separator__line"></div>
15 {% endif %} 15 {% endif %}
16 </div> 16 </div>
17 {% endmacro %} 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 %}