Ticket #3957 (partial) - ganeti_webmgr uses ganeti python namespace:
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / object_log / permissions / add_user.html
bloba5e9687f4232fd45f4e0947105a40ca6ec01412b
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 added
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 to {{log_item.object_type1}} {{data.object_str}}
20 {% endwith %}