{% extends "page-twocol.html" %} {% load kegweblib %} {% block title %} keg {{ keg.seqn }} detail {% endblock %} {% block pagetitle %} keg {{ keg.seqn }} detail {% endblock %} {% block col-1 %}
{% if keg.description %} {% endif %}
{{keg.type.name}} {% include "kegweb/keg-image.html" %}
{{keg.type.brewer}}
{{keg.size.name}}
 
{{keg.description}}
{% if keg.tap %} {% if keg.tap.temperature_sensor %} {% endif %} {% endif %} {% if keg.spilled_volume > 0 %} {% 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
Total Poured {% volume keg.served_volume %} {% if not keg.is_empty %} ({% volume keg.remaining_volume %} 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 %}
Total Spilled/Lost {% volume keg.spilled_volume %}
{% 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 %}
all sessions

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

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