Quellcode durchsuchen

Evolution #387: Ordre des tags

Sevajol Bastien vor 13 Jahren
Ursprung
Commit
1670c7fccd
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/Muzich/CoreBundle/Resources/views/Tag/tagsList.show.html.twig

+ 2 - 2
src/Muzich/CoreBundle/Resources/views/Tag/tagsList.show.html.twig Datei anzeigen

9
     'tags_ids_json' : ''
9
     'tags_ids_json' : ''
10
   }) }}" />
10
   }) }}" />
11
   <ul id="favorite_tags">
11
   <ul id="favorite_tags">
12
-    {% for tag in tags %}
13
-      <li {% if loop.index0 > cloud_tags_limit_to_display %}style="display: none;"{% endif %}>
12
+    {% for key, tag in tags %}
13
+      <li class="{{ css_list_length_class(key, tags|length) }}" {% if loop.index0 > cloud_tags_limit_to_display %}style="display: none;"{% endif %}>
14
         <a id="filtering_tag_{{ tag.id }}" href="#" class="button tag">
14
         <a id="filtering_tag_{{ tag.id }}" href="#" class="button tag">
15
           {{ tag.name }}
15
           {{ tag.name }}
16
         </a>
16
         </a>