{% extends "base.html" %} {% load kegweblib %} {% block title %}Keg {{ keg.id }} | {{ block.super }}{% endblock %} {% block pagetitle %}Keg {{ keg.id }}{% endblock %} {% block content %}

{{keg.type.name}} {% if keg.type.producer %} {{keg.type.producer}} {% if user.is_staff %} (edit beer) {% endif %} {% endif %}

{% if keg.current_tap %} {% progress_bar keg.percent_full %} {% endif %} {% include "kegweb/basic-badges.html" %} {% if keg.description %}

{{ keg.description}}

{% endif %}
{% include "kegweb/basic-stats.html" %} {% if keg.spilled_volume > 0 %} {% endif %}
Status {% if keg.current_tap %} Keg is online, and is {{ keg.keg_age.days }} day{{keg.keg_age.days|pluralize}} old. {% if keg.is_empty %} (empty) {% else %} ({{ keg.percent_full|floatformat:2 }}% full) {% endif %} {% else %} Keg is offline; it lasted {{ keg.keg_age.days }} day{{keg.keg_age.days|pluralize}}. {% endif %}
Total Spilled/Lost {% volume keg.spilled_volume %}
{% with keg.current_tap as tap %} {% if tap and tap.temperature_sensor %} {% endif %} {% endwith %}
Volume by Weekday {% chart volume_by_weekday stats 340 100 %}
Temperature {{ tap.Temperature.TempC|floatformat:1}}°C / {{ tap.Temperature.TempF|floatformat:1}}°F
{% chart temp_sensor tap.temperature_sensor 340 60 %}
{% if last_session %}
{% for session in last_session %} {% include "kegweb/keg-session.html" %} {% endfor %}
{% endif %}
{% if stats %}

Top Users

{% chart users_by_volume stats 280 220 %}
{% with keg.get_top_users as ranked_drinkers %} {% include "kegweb/drinker-rank.html" %} {% endwith %} See All Keg Sessions {% endif %}
{% endblock %} {% block kb-extrajs %} {% endblock %}