profile.html 2.91 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
{% block opengraph_title %}{% trans "profile"|capfirst %} — {% trans "members"|capfirst %} — {{ block.super }}{% endblock %}
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

{% block body %}
<h1>
    {{ member.display_name }}

    <span class="title-meta clearfix">
        <span><a href="{% url 'members:index' %}" class="back"></a></span>
    </span>
</h1>

<div class="clearfix"></div>

<div class="type-portfolio type-portfolio-half clearfix user-page">
    <div class="row">
        <div class="span8">
23
            <img src="{% if not member.photo %}{% static "members/images/default-avatar.jpg" %}{% else %}{{ member.photo.url }}{% endif %}" alt="{{ member.username }}" />
24
25
26
27
28
29
30
31
32
33
34
35
36
        </div>
        <div class="span4 row">
            <h4>{% trans "About" %} {{ member.short_display_name }}</h4>

            {% if not member.profile_description %}
            <i>{% trans "This member has not written a description yet." %}</i>
            {% else %}
            {{ member.profile_description }}
            {% endif %}

            <hr class="separator">
            <h4>{% trans "Personal information" %}</h4>
            <ul class="post-meta">
37
                <li><span>{% trans "Cohort" %}: </span> {{ member.starting_year }}<br></li>
38
39
40
41

                <li><span>{% trans "Study programme" %}: </span> {{ member.get_programme_display }}<br></li>

                {% if member.website %}
Wietse Kuipers's avatar
Wietse Kuipers committed
42
                <li><span>{% trans "Website" %}: </span> <a rel="nofollow,noopener" href="{{ member.website }}">{{ member.website }}</a></li>
43
44
45
46
47
48
49
50
51
52
53
                {% endif %}

                {% if member.show_birthday %}
                <li><span>{% trans "Birthday" %}: </span> {{ member.birthday }}</li>
                {% endif %}
            </ul>

            <hr class="separator">

            <h4>{% trans "Achievements for Thalia" %}</h4>
            <ul class="post-meta">
54
                {% for achievement in achievements %}
55
56
57
                <li style="margin-bottom:10px;">
                    <span>{{ achievement.name }}</span>
                    <br>
58
                    {% for period in achievement.periods %}
59
60
61
62
                        {% if period.role %}
                        <span style="text-transform:inherit;">{{ period.role }}: </span>
                        {% elif period.chair %}
                        <span style="text-transform:inherit;">{% trans "Chair" %}: </span>
63
                        {% endif %}
64
                        <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>
65
                    <br>
66
                    {% endfor %}
67
68
69
70
71
72
73
                </li>
                {% endfor %}
            </ul>
        </div>
    </div>
    <!-- /portfolio single content -->
</div>
74
{% endblock %}