Ticket #3957 (partial) - ganeti_webmgr uses ganeti python namespace:
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / object_log / permissions / modify_perms.html
blob1aefe90f5724f20435bcca13e418b8d65effdb02
1 {% load webmgr_tags %}
2 {% with log_item.data as data %}
3 {% if user.is_superuser %}
4 <a href="{% url user-detail log_item.user.pk %}">{{log_item.user}}</a>
5 {% else %}
6 {{ log_item.user }}
7 {% endif %}
8 modified permissions for
9 {{ data.affected_user_class }}
10 {% if user.is_superuser %}
11 {% ifequal data.affected_user_class "User" %}
12 <a href="{% url user-detail data.affected_user_id %}">{{data.affected_user}}</a>
13 {% else %}
14 <a href="{% url group-detail data.affected_user_id %}">{{data.affected_user}}</a>
15 {% endifequal %}
16 {% else %}
17 {{ data.affected_user }}
18 {% endif %}
19 on {{log_item.object_type1}} {{data.object_str}}
20 {% endwith %}