Merge tag '0.10.2'
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / object_log / permissions / modify_perms.html
blob5e705c309eb6b3d55da199754bf6e17598497230
1 {% load webmgr_tags %}
2 {% load object_log_tags %}
3 {% with log_item.data as data %}
4 {% if user.is_superuser %}
5 <a href="{{ log_item.user.get_absolute_url }}">{{log_item.user}}</a>
6 {% else %}
7 {{ log_item.user }}
8 {% endif %}
9 modified permissions for
10 {{ data.affected_user_class }}
11 {% if user.is_superuser and log_item.object_id2 %}
12 {% ifequal data.affected_user_class "User" %}
13 <a href="{% url user-detail log_item.object_id2 %}">{{data.affected_user}}</a>
14 {% else %}
15 <a href="{% url group-detail log_item.object_id2 %}">{{data.affected_user}}</a>
16 {% endifequal %}
17 {% else %}
18 {{ data.affected_user|default:"[deleted user]"}}
19 {% endif %}
20 on {{log_item.object_type1_id|ct_for_id}} {% contenttypelink log_item.object_type1_id log_item.object_id1 %}{{log_item.data.object_str}}{% endcontenttypelink %}
21 {% endwith %}