{% extends "page-twocol.html" %} {% load kegweblib %} {% block title %}keg index{% endblock %} {% block col-1 %}
keg {{keg.seqn}} snapshot
{% if keg.tap %} {% if keg.tap.temperature_sensor %} {% endif %} {% endif %}
{{keg.type}}
{{keg.size.name}}
{% if keg.type.GetImage %} {% else %}
?
no image
{% endif %}
 
Status {% ifequal keg.status "online" %} this keg is online, and is {{ keg.keg_age.days }} day{{keg.keg_age.days|pluralize}} old.
it is {% if keg.is_empty %} empty. {% else %} {{ keg.percent_full|floatformat:2 }}% full. {% endif %} {% else %} this keg is offline; it lasted {{ keg.keg_age.days }} day{{keg.keg_age.days|pluralize}}. {% endifequal %}
Pour Count {{ keg.drinks.valid.count }} pours by {% with keg.GetStats.registered_drinkers as drinkers %} {{ drinkers|length }} known drinker{{ drinkers|length|pluralize }}. {% endwith %}
Sessions {{ keg.keg_session_chunks.all.count }} drinking sessions
Pints Poured
{{keg.served_volume.ConvertTo.Pint|floatformat:0}} pints {% if not keg.is_empty %} ({{keg.remaining_volume.ConvertTo.Pint|floatformat:0}} remain) {% endif %}
{% chart keg_volume keg 340 60 %}
Temperature
{{ keg.tap.Temperature.TempC|floatformat:1}}°C / {{ keg.tap.Temperature.TempF|floatformat:1}}°F
{% chart sensor keg.tap.temperature_sensor 340 60 %}
Pints by Weekday {% chart volume_by_day keg 340 100 %}
{% endblock col-1 %} {% block col-2 %}
drinker breakdown
{% chart users_by_volume keg 350 250 %}
{% endblock col-2 %} {% block extra-content %} {% with keg.next as next %} {% with keg.previous as previous %} {% if next or previous %}
{% if previous %} « previous keg {% endif %} {% if next and previous %} — {% endif %} {% if next %} next keg » {% endif %}
{% endif %} {% endwith %} {% endwith %}

{% for chunk in keg.keg_session_chunks.all %} {% with chunk.session as session %} {% include "kegweb/keg-session.html" %} {% endwith %} {% endfor %}

top drinkers
{% for volume,user in keg.TopDrinkers %} {% include "kegweb/volume-user.html" %} {% endfor %}
 
{% endblock extra-content %}