]> git.parisson.com Git - mezzo.git/commitdiff
Reduce the size of the category on cards
authorJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Wed, 26 Oct 2016 12:17:01 +0000 (14:17 +0200)
committerJérémy Fabre <Jeremy@iMac-de-Jeremy.local>
Wed, 26 Oct 2016 12:17:01 +0000 (14:17 +0200)
app/templates/agenda/includes/event_card.html
app/templates/magazine/article/includes/article_card.html

index d4754091851c228c80e3dafdc5101abae8f27722..f3ca82ac0d84c933dda54fd32a00fe9c4fee5a6e 100644 (file)
     <div class="article-box__tags">
         {% if event.departments.first %}
             {% with event.departments.first as department %}
-                <div class="tag tag--small dashed">
+                <div class="tag tag--small dashed dashed--small">
                   {{ department.department.name }}
                 </div>
             {% endwith %}
         {% endif %}
         {% if event.category %}
             <div class="tag tag--small tag--category">
-                {{ event.category }}
+                {{ event.category|truncatechars:20 }}
             </div>
         {% endif %}
     </div>
index 1ceb2afd0da46c7642f14d41734967134f3a160b..21419bd8b0429480a339082af1bf8829b3795597 100644 (file)
@@ -45,7 +45,7 @@
             {% trans 'News' %}
         </div>
         {% if article.department %}
-            <div class="tag tag--small dashed dashed--gray">
+            <div class="tag tag--small dashed dashed--gray dashed--small">
               {{ article.department.name }}
             </div>
         {% endif %}