committee_detail.html 3.03 KB
Newer Older
Thom Wiggers's avatar
Thom Wiggers committed
1
{% extends "base.html" %}
2
{% load i18n static thumbnail %}
Thom Wiggers's avatar
Thom Wiggers committed
3
{% block title %}{{ committee.name }} — {% trans 'Committees' %} — {{ block.super }}{% endblock %}
4
{% block opengraph_title %}{{ committee.name }} — {% trans 'Committees' %} — {{ block.super }}{% endblock %}
Thom Wiggers's avatar
Thom Wiggers committed
5
6
7
8
9

{% block body %}
<h1>{{ committee.name }}
  <span class="title-meta clearfix">
    <span>
10
      <a class="back" href="{% url 'activemembers:committees' %}" id="collectionButton"></a>
Thom Wiggers's avatar
Thom Wiggers committed
11
12
13
14
15
16
17
    </span>
  </span>
</h1>
<div class="portfolio"></div>
<div class="clearfix portfolio">
  <div id="committee-div">
    <div class="row">
18
      {% if committee.photo %}
19
20
      <img alt="{% blocktrans with name=committee.name %}Photo of {{ name }}{% endblocktrans %}" class="span12" src="{% thumbnail committee.photo '1024x683' fit=False %}">
      {% else %}
21
      <img alt="{% blocktrans with name=committee.name %}Photo of {{ name }}{% endblocktrans %}" class="span12" src="{% static 'activemembers/images/placeholder.png' %}">
Thom Wiggers's avatar
Thom Wiggers committed
22
      {% endif %}
Thom Wiggers's avatar
Thom Wiggers committed
23
24
25
26
27
28
29
30
31
32
33
34
35
    </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">
36
                {% if not member.photo %}
37
                <img alt="{{ member.display_name }}" src="{% static 'members/images/default-avatar.jpg' %}" height="220" width="220" />
38
                {% else %}
39
                <img alt="{{ member.display_name }}" src="{% thumbnail member.photo '220x220' %}" width="220" height="220" />
40
                {% endif %}
Thom Wiggers's avatar
Thom Wiggers committed
41
42
43
44
              </div>
              {% if member.chair %}
              <div class="ribbon-wrapper-basiskleur">
                <div class="ribbon-basiskleur">
45
                  {% trans "Chair" %}
Thom Wiggers's avatar
Thom Wiggers committed
46
47
48
49
50
51
                </div>
              </div>
              {% endif %}
              <div class="post-overlay">
                <div class="post-overlay-meta">
                  <h2>{{ member.display_name }}</h2>
52
53
54
55
56
57
58
                  <p>
                  {% if member.committee_since.year == 1970 %}
                  {% blocktrans %}Committee member since: ?{% endblocktrans %}
                  {% else %}
                  {% blocktrans with since=member.committee_since|date:"Y" %}Committee member since: {{ since }}{% endblocktrans %}
                  {% endif %}
                  </p>
Thom Wiggers's avatar
Thom Wiggers committed
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
                </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 %}