diff default/ticket/discover.html @ 138:85877c76d47d

merge-request: discovery page
author Goffi <goffi@goffi.org>
date Tue, 27 Mar 2018 08:33:11 +0200
parents 24920d436e77
children
line wrap: on
line diff
--- a/default/ticket/discover.html	Tue Mar 27 08:32:34 2018 +0200
+++ b/default/ticket/discover.html	Tue Mar 27 08:33:11 2018 +0200
@@ -1,29 +1,20 @@
 {% extends 'base/base.html' %}
-{% import 'components/block.html' as block %}
+{% import 'components/block.html' as block with context %}
 {% import 'components/images.html' as images with context %}
 {% import 'components/avatar.html' as avatar with context %}
 {% import 'input/form.html' as form with context %}
 {% import 'input/field.html' as field with context %}
 
 {% block body %}
+{{ icon_defs('clipboard') }}
 <p class="instructions--head">
     {% trans %}
     Please select a tickets tracker
     {% endtrans %}
 </p>
 {% if tickets_trackers is defined %}
-    {{ icon_defs('clipboard') }}
     <div class="disco_tickets">
-        <ul class="grid grid--center">
-            {% for tracker in tickets_trackers %}
-                <li class='grid__item grid__item--medium grid__item--selectable'>
-                    <a href="{{tracker.url}}" class="items_vert--centered">
-                        {{ icon('clipboard', cls='icon--medium') }}
-                        <span>{{ tracker.name }}</span>
-                    </a>
-                </li>
-            {% endfor %}
-        </ul>
+        {{block.disco_icon_grid(tickets_trackers, 'clipboard')}}
     </div>
 {% endif %}