{% extends "page-twocol.html" %} {% load kegweblib %} {% block title %}Drinker Details: {{ drinker.username }}{% endblock %} {% block pagetitle %}Drinker Details: {{ drinker.username }}{% endblock %} {% block sidebar %}
{% mugshot_box drinker %}
{% endblock %} {% block col-1 %}

Summary

{% if stats.total_pours %} {% with drinker.drinks.latest as last_drink %} {% endwith %} {% endif %}
Total Volume {% volume stats.total_volume_ml %}
Total Pours {{ stats.total_pours }}
Total Sessions {{ stats.sessions_count }}
Average Pour {% volume stats.average_volume_ml %}
Largest Pour {% volume stats.greatest_volume_ml %}
Member Since {{ drinker.date_joined|date:"l, F j Y" }}
({% timeago drinker.date_joined %})
Last Drink {{ last_drink.starttime|date:"l, F j Y" }}
({% timeago last_drink.starttime%})
{% if chunks %}

Recent Sessions

{% for chunk in chunks %} {% with chunk.session as session %} {% include "kegweb/keg-session.html" %} {% endwith %} {% endfor %}
{% endif %} {% endblock %} {% block col-2 %}

Drinker Stats

{% if not stats.total_pours %} No sessions recorded for {{ drinker }}, nothing to display! {% else %}

total pints, by day of week
{% chart sessions_weekday drinker 350 100 %}

all sessions, by pints per session
{% chart sessions_volume chunks 350 100 %}

{% endif %}
{% endblock %}