Browse Source

Evolution #387: Ordre des tags

Sevajol Bastien 12 years ago
parent
commit
1670c7fccd
1 changed files with 2 additions and 2 deletions
  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 View File

@@ -9,8 +9,8 @@
9 9
     'tags_ids_json' : ''
10 10
   }) }}" />
11 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 14
         <a id="filtering_tag_{{ tag.id }}" href="#" class="button tag">
15 15
           {{ tag.name }}
16 16
         </a>