comparison sat_templates/templates/default/event/overview.html @ 196:03c8fd941c0c

event, photo, components: moved interests grid in a macro (in components/block)
author Goffi <goffi@goffi.org>
date Fri, 03 May 2019 23:56:11 +0200
parents e9f0a4215e46
children
comparison
equal deleted inserted replaced
195:bca0aa66294a 196:03c8fd941c0c
6 @variable comments_node(unicode): node for adding comments 6 @variable comments_node(unicode): node for adding comments
7 #} 7 #}
8 8
9 {% set category_menu = [('event_new', url_event_new)] %} 9 {% set category_menu = [('event_new', url_event_new)] %}
10 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} 10 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
11 {% import 'components/block.html' as block with context %}
12
11 {% block body %} 13 {% block body %}
14 {{ icon_defs('calendar') }}
12 <div class="box message--info"> 15 <div class="box message--info">
13 <p>{% trans %}There is not events discovery yet, this will come in the future.{% endtrans %}</p> 16 <p>{% trans %}There is not events discovery yet, this will come in the future.{% endtrans %}</p>
14 </div> 17 </div>
15 {% if events is defined %} 18 {% if events is defined %}
16 <p class="message--note"> 19 <p class="message--note">
18 You have currently {{nb_events}} event in your personal list 21 You have currently {{nb_events}} event in your personal list
19 {% pluralize %} 22 {% pluralize %}
20 You have currently {{nb_events}} events in your personal list 23 You have currently {{nb_events}} events in your personal list
21 {% endtrans %} 24 {% endtrans %}
22 </p> 25 </p>
23 <ul class="grid grid--center"> 26
24 {% for event in events %} 27 {{block.interests_grid(events, 'calendar')}}
25 <li class='grid__item grid__item--medium grid__item--selectable'> 28
26 <a href="{{event.url}}">
27 {% if event.image %}
28 <img class="img--small" src="{{event.image}}">
29 {% endif %}
30 <span><em>{{event.name}}</em></span>
31 </a>
32 </li>
33 {% endfor %}
34 </ul>
35 {% endif %} 29 {% endif %}
36 {% endblock body %} 30 {% endblock body %}