{% if not env.xhr %}{% extends env.cfg.general.base_template %}{% endif %}
{% block content %}
  {% if not env.xhr %}
    <h1>{{ env.day|date(env) }}</h1>
  {% endif %}
  <p>{{ env.lang_dict(en="sort by", de="sortieren nach") }} <a href="#" class="sortByTime">{{ env.lang_dict(en="time", de="Zeit") }}</a> | <a href="#" class="sortByPart">{{ env.lang_str(env.cfg.notation.part) }}</a></p>
  <table width="100%">
    <tbody>
      {% for session in env.sessions %}
        <tr>
          <td class="scip"><a href="{{ env.url_for('session', part=session.part.url, session=session.url) }}"><img src="/static/plus.gif" height="16" width="16" border="0" class="ajaxTree"></a></td>
          <td class="scip" nowrap>{{ session.begin|weekday(env) }}, {{ session.begin|time(env) }}&ndash;{{ session.end|time(env) }}</td>
          <td class="scip" nowrap>{{ session.location }}</td>
          <td class="scip" width="100%"><a href="{{ env.url_for('session', part=session.part.url, session=session.url) }}">{{ session.title }}</a></td>
          <td class="day_time_order">{{ '%02d:%02d %s %s a' % (session.begin.hour, session.begin.minute, session.part.order, session.part_order) }}</td>
          <td class="day_part_order">{{ '%s %02d:%02d %s a' % (session.part.order, session.begin.hour, session.begin.minute, session.part_order) }}</td>
        </tr>
        <tr>
          <td class="scip"></td>
          <td class="scip" colspan="3"></td>
          <td class="day_time_order">{{ '%02d:%02d %s %s b' % (session.begin.hour, session.begin.minute, session.part.order, session.part_order) }}</td>
          <td class="day_part_order">{{ '%s %02d:%02d %s b' % (session.part.order, session.begin.hour, session.begin.minute, session.part_order) }}</td>
        </tr>
      {% endfor %}
    </tbody>
  </table>
{% endblock %}
