ソースを参照

Evolution #387: Ordre des tags

Sevajol Bastien 12 年 前
コミット
1670c7fccd
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  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 ファイルの表示

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>