Browse Source

Evolution #387: Ordre des tags

Sevajol Bastien 12 years ago
parent
commit
1670c7fccd

+ 2 - 2
src/Muzich/CoreBundle/Resources/views/Tag/tagsList.show.html.twig View File

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>