user_base.jinja 1.14 KB
Newer Older
1
2
3
4
{% extends "core/base.jinja" %}

{% block content %}
<div class="tool-bar">
Skia's avatar
Skia committed
5
    <div>{{ profile.get_display_name() }}</div>
Skia's avatar
Skia committed
6
7
    <div class="tools">
        <a href="{{ url('core:user_profile', user_id=profile.id) }}">{% trans %}Infos{% endtrans %}</a>
8
        <a href="{{ url('core:user_stats', user_id=profile.id) }}">{% trans %}Stats{% endtrans %}</a>
Skia's avatar
Skia committed
9
10
11
12
13
14
        {% if can_edit(profile, request.user) or user.id == profile.id %}
        <a href="{{ url('core:user_edit', user_id=profile.id) }}">{% trans %}Edit{% endtrans %}</a>
        {% endif %}
        {% if can_edit_prop(profile, request.user) %}
        <a href="{{ url('core:user_groups', user_id=profile.id) }}">{% trans %}Groups{% endtrans %}</a>
        {% endif %}
Skia's avatar
Skia committed
15
        {% if profile.customer and (profile == request.user
Skia's avatar
Skia committed
16
        or request.user.is_in_group(settings.SITH_GROUPS['accounting-admin']['name'])
Skia's avatar
Skia committed
17
        or request.user.is_root) %}
18
        <a href="{{ url('core:user_account', user_id=profile.id) }}">{% trans %}Account{% endtrans %} ({{ profile.customer.amount }}€)</a>
Skia's avatar
Skia committed
19
20
        {% endif %}
    </div>
21
</div>
Skia's avatar
Skia committed
22
<hr>
23
24

<div>
Skia's avatar
Skia committed
25
26
    {% block infos %}
    {% endblock %}
27
28
29
30
31
32
</div>

{% endblock %}