Source

django-spotnet / spotnet / stats / templates / spotnet_stats / general.html

Full commit
{% extends "spotnet_stats/index.html" %}
{% load i18n %}


{% block content %}
  <h2>{% trans "General spotnet statistics" %}</h2>
  <table>
    <tr>
      <th>{% trans "Total posts" %}</th>
      <td>{{ total_posts }}</td>
    </tr>
    <tr>
      <th>{% trans "Total downloadable" %}</th>
      <td>{{ total_filesize|filesizeformat }}</td>
    </tr>
    <tr>
      <th>{% trans "Oldest post" %}</th>
      <td>{{ first_post }}</td>
    </tr>
    <tr>
      <th>{% trans "Newest post" %}</th>
      <td>{{ last_post }} ({{ last_post|timesince }} {% trans "ago" %})</td>
    </tr>
{% if table_filesize %}
    <tr>
      <th>{% trans "Post table size" %}</th>
      <td>{{ table_filesize|filesizeformat }}</td>
    </tr>
{% endif %}
  </table>

  <h2>{% trans "Posts per category" %}</h2>
  <table>
{% for cat, posts, filesize in category_posts %}
    <tr>
      <th>{{ cat|capfirst }}</th>
      <td>{{ posts }}</td>
      <td>{{ filesize|filesizeformat }}</td>
    </tr>
{% endfor %}
  </table>
{% endblock %}