{% extends "page-twocol.html" %}
{% load kegweblib %}

{% block title %}main page{% endblock %}

{% block col-1 %}
  <h2>On Tap</h2>
  {% for tap in taps %}
    {% if tap.current_keg %}
      {% with tap.current_keg as keg %}
        {% include "kegweb/keg-snapshot.html" %}
      {% endwith %}
    {% endif %}
  {% endfor %}

  {% if current_session %}
    <p>
      <h2>Now Drinking</h2>
      {% with current_session as session %}
        {% include "kegweb/keg-session.html" %}
      {% endwith %}
    </p>
  {% endif %}

  {% with recent_images as pictures %}  
  {% if pictures.count %}
  <h2>Recent Pictures</h2>
    <div class="well">
    {% include "kegweb/picture-gallery.html" %}
    </div>
  {% endif %}
  {% endwith %}
{% endblock col-1 %}

{% block col-2 %}
<div class="kb-contentbox">
  <h2>Recent Activity</h2>
  <div id="kb-recent-events"> </div>
</div>

{% endblock col-2 %}
