Mercurial > libervia-templates
diff 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 |
line wrap: on
line diff
--- a/sat_templates/templates/default/event/overview.html Fri May 03 20:55:49 2019 +0200 +++ b/sat_templates/templates/default/event/overview.html Fri May 03 23:56:11 2019 +0200 @@ -8,7 +8,10 @@ {% set category_menu = [('event_new', url_event_new)] %} {% if not embedded %}{% extends 'base/base.html' %}{% endif %} +{% import 'components/block.html' as block with context %} + {% block body %} +{{ icon_defs('calendar') }} <div class="box message--info"> <p>{% trans %}There is not events discovery yet, this will come in the future.{% endtrans %}</p> </div> @@ -20,17 +23,8 @@ You have currently {{nb_events}} events in your personal list {% endtrans %} </p> - <ul class="grid grid--center"> - {% for event in events %} - <li class='grid__item grid__item--medium grid__item--selectable'> - <a href="{{event.url}}"> - {% if event.image %} - <img class="img--small" src="{{event.image}}"> - {% endif %} - <span><em>{{event.name}}</em></span> - </a> - </li> - {% endfor %} - </ul> + + {{block.interests_grid(events, 'calendar')}} + {% endif %} {% endblock body %}