board_detail.html 2.5 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 %}
5
{% block opengraph_title %}{% trans "Board" %} {{ board.since.year }}-{{ board.until.year }} — {% trans "Boards" %} — {{ block.super }}{% endblock %}
Thom Wiggers's avatar
Thom Wiggers committed
6
7

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