diff sat_templates/default/event/overview.html @ 154:80cf52fbcc40

events: added admin, create and overview templates
author Goffi <goffi@goffi.org>
date Thu, 21 Jun 2018 01:11:07 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sat_templates/default/event/overview.html	Thu Jun 21 01:11:07 2018 +0200
@@ -0,0 +1,36 @@
+{# overview of current events
+
+    @variable item(xmlui_item): ticket to display
+    @variable comments(data_object.BlogItems): comments of the ticket
+    @variable comments_service(unicode): service for adding comments
+    @variable comments_node(unicode): node for adding comments
+#}
+
+{% set category_menu = [('event_new', url_event_new)] %}
+{% if not embedded %}{% extends 'base/base.html' %}{% endif %}
+{% block body %}
+<div class="box message--info">
+    <p>{% trans %}There is not events discovery yet, this will come in the future.{% endtrans %}</p>
+</div>
+{% if events is defined %}
+    <p class="message--note">
+        {% trans nb_events=events|length%}
+            You have currently {{nb_events}} event in your personal list
+        {% pluralize %}
+            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>
+{% endif %}
+{% endblock body %}