{% extends "page-twocol.html" %}
{% load kegweblib %}

{% block title %}all-time system stats{% endblock %}
{% block pagetitle %}all-time system stats{% endblock %}

{% block col-1 %}
<h2>Summary</h2>
<table border="0" class="condensed-table">
  <tbody>
    <tr>
      <th>Total Drinkers</th>
      <td>
        This Kegbot has served at least
        <b>{{ stats.registered_drinkers|length }}</b> unique drinkers.
      </td>
    </tr>

    {% include "kegweb/basic-stats.html" %}

  </tbody>
</table>
{% endblock col-1 %}

{% block col-2 %}
<div class="row">
  <div class="span5">
    <h2>Top Drinkers</h2>
    {% chart users_by_volume stats 280 220 %}<br/>
    {% with top_drinkers as ranked_drinkers %}
      {% include "kegweb/drinker-rank.html" %}
    {% endwith %}
  </div>
</div>
{% endblock col-2 %}
