profile.html 4.19 KB
Newer Older
1
{% extends "base.html" %}
2
3

{% load static %}
4
5
{% load i18n %}

6
{% block title %}{% trans "profile"|capfirst %} — {% trans "members"|capfirst %} — {{ block.super }}{% endblock %}
7
8
{% block opengraph_title %}{% trans "profile"|capfirst %} — {% trans "members"|capfirst %} —
    {{ block.super }}{% endblock %}
9
10

{% block body %}
11
12
13
14
15
    <section id="members-profile" class="page-section">
        <div class="container">
            <h1 class="text-center section-title">
                {{ member.profile.display_name }}
            </h1>
16

17
18
19
20
21
22
23
24
25
26
27
28
            <div class="row">
                <div class="col-12 col-lg-7 text-center">
                    {% if not member.profile.photo %}
                        <img src="{% static "members/images/default-avatar.jpg" %}"
                             alt="{{ member.display_name }}"/>
                    {% else %}
                        <img src="{{ member.profile.photo.url }}"
                             alt="{{ member.display_name }}"/>
                    {% endif %}
                </div>
                <div class="col-12 col-lg-5">
                    <h4>{% trans "About" %} {{ member.profile.short_display_name }}</h4>
29

30
31
32
33
34
35
36
                    {% if not member.profile.profile_description %}
                        <p>
                            <i>{% trans "This member has not written a description yet." %}</i>
                        </p>
                    {% else %}
                        {{ member.profile.profile_description }}
                    {% endif %}
37

38
                    <hr class="separator">
39

40
41
42
                    <h4>{% trans "Personal information" %}</h4>
                    <ul class="list-unstyled">
                        <li><strong>{% trans "Membership type" %}: </strong> {{ membership_type }}<br></li>
43

44
45
46
                        {% if member.profile.starting_year %}
                            <li><strong>{% trans "Cohort" %}: </strong> {{ member.profile.starting_year }}<br></li>
                        {% endif %}
47

48
49
50
51
52
                        {% if member.profile.programme %}
                            <li>
                                <strong>{% trans "Study programme" %}: </strong> {{ member.profile.get_programme_display }}<br>
                            </li>
                        {% endif %}
53

54
55
56
57
58
                        {% if member.profile.website %}
                            <li><strong>{% trans "Website" %}: </strong> <a rel="nofollow,noopener"
                                                                        href="{{ member.profile.website }}">{{ member.profile.website }}</a>
                            </li>
                        {% endif %}
59

60
61
62
63
                        {% if member.profile.show_birthday %}
                            <li><strong>{% trans "Birthday" %}: </strong> {{ member.profile.birthday }}</li>
                        {% endif %}
                    </ul>
64

65
                    <hr class="separator">
66

67
68
69
70
71
72
73
74
                    <h4>{% trans "Achievements for Thalia" %}</h4>
                    <ul class="list-unstyled">
                        {% for achievement in achievements %}
                            <li class="mb-1">
                                <strong>{{ achievement.name }}</strong>
                                <br>
                                {% for period in achievement.periods %}
                                    {% if period.role %}
75
                                        <span>{{ period.role }}: </span>
76
                                    {% elif period.chair %}
77
                                        <span>{% trans "Chair" %}: </span>
78
79
80
81
82
83
84
85
86
87
88
89
90
                                    {% endif %}
                                    <i>{% if period.since|date:'Y m d' == '1970 01 01' %}?{% else %}
                                        {{ period.since }}{% endif %} -
                                        {% if period.until %}{{ period.until }}{% else %}
                                            {% trans "today" %}{% endif %}</i>
                                    <br>
                                {% endfor %}
                            </li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
        </div>
91
        </div>
92
    </section>
93
{% endblock %}