details.html 2.39 KB
Newer Older
Thom Wiggers's avatar
Thom Wiggers committed
1
{% extends "base.html" %}
2
{% load i18n static %}
Thom Wiggers's avatar
Thom Wiggers committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% block title %}{{ committee.name }} — {% trans 'Committees' %} — {{ block.super }}{% endblock %}

{% block body %}
<h1>{{ committee.name }}
  <span class="title-meta clearfix">
    <span>
      <a class="back" href="{% url 'committees:index' %}" id="collectionButton"></a>
    </span>
  </span>
</h1>
<div class="portfolio"></div>
<div class="clearfix portfolio">
  <div id="committee-div">
    <div class="row">
Thom Wiggers's avatar
Thom Wiggers committed
17
18
19
      {% if committee.photo %} 
      <img alt="{{ committee.name }}" class="span12" src="{{ committee.photo.url }}">
      {% endif %}
Thom Wiggers's avatar
Thom Wiggers committed
20
21
22
23
24
25
26
27
28
29
30
31
32
    </div>
    <div>
      <h1 class="midhead">{% blocktrans with name=committee.name %}About the {{ name }}{% endblocktrans %}</h1>
      <p class="text-center">{{ committee.description }}</p>
    </div>
    <div class="clearfix member-directory">
      <h1 class="midhead">{% trans 'Committee members' %}</h1>
      <ul class="row" id="commissieleden">
        {% for member in members %}
        <li class="post member-item span3 has-overlay">
          <a href="{{ member.get_absolute_url }}">
            <div class="post-inner">
              <div class="inner-img">
33
34
35
                {% if not member.photo %}
                <img alt="{% trans "Default avatar" %}" src="{% static 'members/images/default-avatar.jpg' %}" height="620" width="620" />
                {% else %}
Thom Wiggers's avatar
Thom Wiggers committed
36
                <img alt="{{ member.display_name }}" src="{{ member.photo.url }}" width="620" height="620" />
37
                {% endif %}
Thom Wiggers's avatar
Thom Wiggers committed
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
              </div>
              {% if member.chair %}
              <div class="ribbon-wrapper-basiskleur">
                <div class="ribbon-basiskleur">
                  {% trans "Voorzitter" %}
                </div>
              </div>
              {% endif %}
              <div class="post-overlay">
                <div class="post-overlay-meta">
                  <h2>{{ member.display_name }}</h2>
                  <p>{% blocktrans with since=member.committee_since|date:"Y" %}Committee member since: {{ since }}{% endblocktrans %}</p>
                </div>
              </div>
              <div class="post-body avatar-subtitle">
                {{ member.display_name }}
              </div>
            </div>
          </a>
        </li>
        {% empty %}
        <li>{% trans "This committee doesn't have any members?" %}</li>
        {% endfor %}
      </ul>
    </div>
  </div>
</div>
{% endblock %}