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

{% block content %}
<div class="tool-bar">
Skia's avatar
Skia committed
5
6
7
8
9
10
11
12
    <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
13
        {% if profile.customer and (profile == request.user
Skia's avatar
Skia committed
14
15
16
17
18
19
        or request.user.is_in_group(settings.SITH_GROUPS['accounting-admin']['name'])
        or request.user.is_in_group(settings.SITH_GROUPS['root']['name'])) %}
        <a href="{{ url('core:user_account', user_id=profile.id) }}">{% trans %}Account{% endtrans %}</a>
        {% endif %}
    </div>
    <h5>{{ profile.get_display_name() }}</h5>
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 %}