{% extends "scrutiny/base.html" %}

{% block appbar %}
  <h2>Stats des métadonnées pour la version {% if version == 'future' %}à venir{% else %}du {{ version }}{% endif %}</h2>
{% endblock %}

{% block content %}

  <ul>
    <li>Tickets : {{ total }}</li>
    <li>Tickets classés : {{ classified }} ({{ classified_percent|stringformat:".1f" }}%)</li>
    <li>Tickets repris dans les notes : {{ noted_issues }} ({{ noted_percent|stringformat:".1f" }}%)</li>
    <li>Tickets avec métadonnées complètes : {{ fully_classified }} ({{ fully_classified_percent|stringformat:".1f" }}%),
      dont repris : {{ fully_classified_noted }} ({{ fully_classified_noted_percent|stringformat:".1f" }}%)</li>
  </ul>

  <h3>Financement :</h3>

  <ul>
    {% for entry in paid_by_infos %}
      <li>{{ entry.label }} : {{ entry.count }} ({{ entry.percent|stringformat:".1f" }}%){% if "noted" in entry %}, dont repris
        {{ entry.noted }} ({{ entry.noted_percent|stringformat:".1f" }}%)
      {% endif %}</li>
    {% endfor %}
  </ul>

  <h3>Origine :</h3>

  <ul>
    {% for entry in origin_infos %}
      <li>{{ entry.label }} : {{ entry.count }} ({{ entry.percent|stringformat:".1f" }}%){% if "noted" in entry %}, dont repris
        {{ entry.noted }} ({{ entry.noted_percent|stringformat:".1f" }}%)
      {% endif %}</li>
    {% endfor %}
  </ul>

{% endblock %}
