Source

cciw-website2 / templates / cciw / camps / thisyear.html

{% extends "cciw/standard.html" %}
{% load standardpage %}
{% block content %}
  {% if camps %}
    {% htmlchunk camp_dates_intro_text %}
    <h2>Dates</h2>
    <div>
    <table class="topheaders" summary="Details of all camps running in {{ thisyear }}">
      <thead>
      <tr>
        <th scope="col" abbr="Num">#</th>
        <th scope="col">Age</th>
        <th scope="col">Dates</th>
        <th scope="col">Leaders</th>
        <th scope="col">Chaplain</th>
      </tr>
      </thead>
        <tbody>
      {% regroup camps by site_id as campgroups %}
      {% for campgroup in campgroups %}
          <tr>
            <th scope="rowgroup" colspan="5" class="siteDivision">
            <a href="{{ campgroup.list.0.site.get_absolute_url }}">{{ campgroup.list.0.site }}</a>
            </th>
          </tr>
        

          {% for camp in campgroup.list %}
          <tr>
            <td><a href="{{ camp.get_absolute_url }}" 
              title="{{ camp.nice_name }}">{{ camp.number }}</a></td>
            <td>{{ camp.age  }}</td>
            <td>{{ camp.start_date|date:"d M"}} - {{ camp.end_date|date:"d M" }}</td>
            <td><a href="{{ camp.get_absolute_url }}" title="{{ camp.nice_name }}">{{ camp.leaders.all|join:", " }}</a></td>
            <td>{% if camp.chaplain %}{{ camp.chaplain }}{% else %}TBA{% endif %}</td>
          </tr>
          {% endfor %}
      {% endfor %}
        </tbody>
    </table>
    </div>
    {% htmlchunk camp_dates_outro_text %}
  {% else %}
  <p>Information for camps in {{thisyear}} is not yet available.</p>
  {% endif %}


{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.