{% 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 sidebar %} {% block col-1 %}

Summary

{% if stats %} {% if stats.total_pours %} {% endif %} {% endif %} {% with drinker.drinks.latest as last_drink %} {% if last_drink %} {% endif %} {% endwith %}
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.time|date:"l, F j Y" }}
({% timeago last_drink.time%})
{% if chunks %}

Recent Sessions

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

Drinker Stats

{% if not stats.total_pours %} Looks like {{ drinker }} has never poured a drink. Boo! {% 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 col-2 %}