<div class="panel panel-default">
  <div class="panel-body">
    {% if label %}<label>{{label}}</label>{% endif %}
    <dl class="dl-horizontal">
      <dt>Vues :</dt>
      <dd><span class="badge">{{ annotation.stats.views_count }}</span></dd>
      <dt>Commentaires :</dt>
      <dd><span class="badge">{{ annotation.stats.comments_count }}</span></dd>
      {% with annotation.stats.metacategoriescountinfo_set.all as annotation_metacategories_infos %}
        {% if annotation_metacategories_infos %}
          <dt>... Métacatégories :</dt>
          <dd>
            {% for metacategory_info in annotation_metacategories_infos %}
              <span class="label label-info">{{metacategory_info.count}} {{metacategory_info.metacategory.label}}</span><br>
            {% endfor %}
          </dd>
        {% endif %}
      {% endwith %}
      <dt>Révisions soumises :</dt>
      <dd><span class="badge">{{ annotation.stats.submitted_revisions_count }}</span></dd>
      <dt>Révisions acceptées :</dt>
      <dd><span class="badge">{{ annotation.stats.accepted_revisions_count }}</span></dd>
      <dt>Nombre de mots-clés :</dt>
      <dd><span class="badge">{{ annotation.stats.tag_count }}</span></dd>
      <dt>... dont pertinents:</dt>
      <dd><span class="badge {% if annotation.stats.relevant_tags_count > 0 %}badge-warning{% endif %}">{{ annotation.stats.relevant_tags_count }}</span></dd>
      <dt>... dont fiables:</dt>
      <dd><span class="badge {% if annotation.stats.accurate_tags_count > 0 %}badge-warning{% endif %}">{{ annotation.stats.accurate_tags_count }}</span></dd>
      
    </dl>
  </div>
</div>