user_base.jinja 1 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
8
9
10
11
12
13
    <div class="tools">
        <a href="{{ url('core:user_profile', user_id=profile.id) }}">{% trans %}Infos{% endtrans %}</a>
        {% 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
14
        {% if profile.customer and (profile == request.user
Skia's avatar
Skia committed
15
        or request.user.is_in_group(settings.SITH_GROUPS['accounting-admin']['name'])
Skia's avatar
Skia committed
16
        or request.user.is_root) %}
Skia's avatar
Skia committed
17
18
19
        <a href="{{ url('core:user_account', user_id=profile.id) }}">{% trans %}Account{% endtrans %}</a>
        {% endif %}
    </div>
20
</div>
Skia's avatar
Skia committed
21
<hr>
22
23

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

{% endblock %}