board_index.html 2.18 KB
Newer Older
1
{% extends "base.html" %}
2
{% load i18n thumbnail static activemembers_cards %}
3 4
{% get_current_language as LANGUAGE_CODE %}

5 6
{% block title %}{% trans 'boards'|capfirst %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans 'boards'|capfirst %} — {{ block.super }}{% endblock %}
7 8

{% block body %}
9 10 11 12 13 14 15 16 17 18 19 20 21 22
    <section id="activemembers-boards" class="page-section">
        <div class="container">
            <h1 class="text-center section-title">
                {% trans 'The board' %}
            </h1>

            <p class="text-center">
                {% blocktrans trimmed %}
                    Thalia's board makes sure all operations during the academic year are taken care of, in front or
                    behind the scenes. If you have any questions then you can address them during the day or, if you're
                    not always on the campus, you're always welcome to
                    <a href="mailto:info@thalia.nu">send them an email</a>.
                {% endblocktrans %}
            </p>
23
            {% if current_board %}
24
            <div class="row">
25 26 27 28
                <a href="{{ current_board.get_absolute_url }}" class="current-board col-12 text-center">
                    {% if current_board.photo %}
                        <img alt="{{ current_board.name }}"
                             src="{% thumbnail current_board.photo THUMBNAIL_SIZE_LARGE fit=False %}">
29
                    {% else %}
30
                        <img alt="{{ current_board.name }}"
31
                             src="/static/activemembers/images/{{ LANGUAGE_CODE }}/placeholder.png">
32 33 34
                    {% endif %}
                </a>
            </div>
35
            {% endif %}
36
        </div>
37 38 39 40 41 42 43 44 45 46
    </section>
    <section class="page-section">
        <div class="container">
            <h1 class="text-center section-title">
                {% trans 'Old boards' %}
            </h1>

            <div class="row mt-4">
                {% for board in old_boards %}
                    <div class="col-4 col-md-3 my-3">
47
                        {% membergroup_card board LANGUAGE_CODE %}
48 49 50 51 52
                    </div>
                {% endfor %}
            </div>
        </div>
    </section>
53
{% endblock %}