board_detail.html 2.34 KB
Newer Older
1
2
3
{% extends 'base.html' %}
{% load i18n thumbnail static %}

4
{% block title %}{% trans "Board" %} {{ board.since.year }}-{{ board.until.year }} — {% trans "Boards" %} — {{ block.super }}{% endblock %}
Thom Wiggers's avatar
Thom Wiggers committed
5
6

{% block body %}
7
8
<h1>
  {% trans "Board" %} {{ board.since.year }}-{{ board.until.year }}
Thom Wiggers's avatar
Thom Wiggers committed
9
10
  <span class="title-meta clearfix">
    <span>
11
      <a class="back" href="{% url 'activemembers:boards' %}" id="collectionButton"></a>
Thom Wiggers's avatar
Thom Wiggers committed
12
13
14
15
16
17
18
    </span>
  </span>
</h1>
<div class="portfolio"></div>
<div class="clearfix portfolio">
  <div id="committee-div">
    <div class="row">
19
20
21
22
      {% if board.photo %}
      <img alt="{{ board.name }}" class="span12" src="{% thumbnail board.photo '1024x683' fit=False %}">
      {% else %}
      <img alt="{{ board.name }}" class="span12" src="{% static 'committees/images/placeholder.png' %}">
Thom Wiggers's avatar
Thom Wiggers committed
23
      {% endif %}
Thom Wiggers's avatar
Thom Wiggers committed
24
25
    </div>
    <div class="clearfix member-directory">
26
      <h1 class="midhead">{% trans 'Board members' %}</h1>
Thom Wiggers's avatar
Thom Wiggers committed
27
28
29
30
31
32
      <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
                {% if not member.photo %}
34
                <img alt="{{ member.display_name }}" src="{% static 'members/images/default-avatar.jpg' %}" height="220" width="220" />
35
                {% else %}
36
                <img alt="{{ member.display_name }}" src="{% thumbnail member.photo '220x220' %}" width="220" height="220" />
37
                {% endif %}
Thom Wiggers's avatar
Thom Wiggers committed
38
39
40
41
              </div>
              {% if member.chair %}
              <div class="ribbon-wrapper-basiskleur">
                <div class="ribbon-basiskleur">
42
                  {% trans "Chair" %}
Thom Wiggers's avatar
Thom Wiggers committed
43
44
45
46
47
48
                </div>
              </div>
              {% endif %}
              <div class="post-overlay">
                <div class="post-overlay-meta">
                  <h2>{{ member.display_name }}</h2>
49
                  <p>{{ member.role }}</p>
Thom Wiggers's avatar
Thom Wiggers committed
50
51
52
53
54
55
56
57
58
                </div>
              </div>
              <div class="post-body avatar-subtitle">
                {{ member.display_name }}
              </div>
            </div>
          </a>
        </li>
        {% empty %}
59
        <li>{% trans "This board doesn't have any members?" %}</li>
Thom Wiggers's avatar
Thom Wiggers committed
60
61
62
63
64
        {% endfor %}
      </ul>
    </div>
  </div>
</div>
65
{% endblock %}