board_detail.html 2.78 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
    </div>
26
27
28
29
30
31
    {% if board.description %}
      <div>
          <h1 class="midhead">{% blocktrans with name=board.name%}About {{ name }}{% endblocktrans %}</h1>
          <p class="text-center">{{ board.description }}</p>
      </div>
    {% endif %}
Thom Wiggers's avatar
Thom Wiggers committed
32
    <div class="clearfix member-directory">
33
      <h1 class="midhead">{% trans 'Board members' %}</h1>
Thom Wiggers's avatar
Thom Wiggers committed
34
35
36
      <ul class="row" id="commissieleden">
        {% for member in members %}
        <li class="post member-item span3 has-overlay">
37
          <a href="{{ member.get_absolute_url }}">
Thom Wiggers's avatar
Thom Wiggers committed
38
39
            <div class="post-inner">
              <div class="inner-img">
40
41
                {% if not member.profile.photo %}
                <img alt="{{ member.profile.display_name }}" src="{% static 'members/images/default-avatar.jpg' %}" height="220" width="220" />
42
                {% else %}
43
                <img alt="{{ member.profile.display_name }}" src="{% thumbnail member.profile.photo '220x220' %}" width="220" height="220" />
44
                {% endif %}
Thom Wiggers's avatar
Thom Wiggers committed
45
46
47
48
              </div>
              {% if member.chair %}
              <div class="ribbon-wrapper-basiskleur">
                <div class="ribbon-basiskleur">
49
                  {% trans "Chair" %}
Thom Wiggers's avatar
Thom Wiggers committed
50
51
52
53
54
                </div>
              </div>
              {% endif %}
              <div class="post-overlay">
                <div class="post-overlay-meta">
55
                  <h2>{{ member.profile.display_name }}</h2>
56
                  <p>{{ member.role }}</p>
Thom Wiggers's avatar
Thom Wiggers committed
57
58
59
                </div>
              </div>
              <div class="post-body avatar-subtitle">
60
                {{ member.profile.display_name }}
Thom Wiggers's avatar
Thom Wiggers committed
61
62
63
64
65
              </div>
            </div>
          </a>
        </li>
        {% empty %}
66
        <li>{% trans "This board doesn't have any members?" %}</li>
Thom Wiggers's avatar
Thom Wiggers committed
67
68
69
70
71
        {% endfor %}
      </ul>
    </div>
  </div>
</div>
72
{% endblock %}