Object Log: updating templates to be more tolerant of missing objects that they are...
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / object_log / permissions / remove_user.html
blob13af780bebbac85afd8117b5ccfa4d148408798e
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 removed
9 {{ data.affected_user_class }}
10 {% if user.is_superuser and log_item.object2_id %}
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|default:"[deleted user]"}}
18 {% endif %}
19 from {{log_item.object_type1}} {{data.object_str}}
20 {% endwith %}