# HG changeset patch # User durandn # Date 1479136526 -3600 # Node ID 06c88bfd5c8dd4297d6711cbaf03d72369fe68b2 # Parent e577ff0eaaca4ba537cb332681e19d6fd57b9bf3 Added metacategories into stat panels for annotations diff -r e577ff0eaaca -r 06c88bfd5c8d src/iconolab/templates/partials/annotation_stats_panel.html --- a/src/iconolab/templates/partials/annotation_stats_panel.html Mon Nov 14 16:15:05 2016 +0100 +++ b/src/iconolab/templates/partials/annotation_stats_panel.html Mon Nov 14 16:15:26 2016 +0100 @@ -6,6 +6,16 @@
{{ annotation.stats.views_count }}
Commentaires :
{{ annotation.stats.comments_count }}
+ {% with annotation.stats.metacategoriescountinfo_set.all as annotation_metacategories_infos %} + {% if annotation_metacategories_infos %} +
.. Métacatégories :
+
+ {% for metacategory_info in annotation_metacategories_infos %} + {{metacategory_info.count}} {{metacategory_info.metacategory.label}}
+ {% endfor %} +
+ {% endif %} + {% endwith %}
Révisions soumises :
{{ annotation.stats.submitted_revisions_count }}
Révisions acceptées :
@@ -16,6 +26,7 @@
{{ annotation.stats.relevant_tags_count }}
... dont précis:
{{ annotation.stats.accurate_tags_count }}
+ \ No newline at end of file