Object Log: updating templates to be more tolerant of missing objects that they are...
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / object_log / vm_start.html
blob273dd1297809159b52fc718ce70a7406dc1e65c1
1 {% with log_item.data as data %}
2 {% if log_item.object2_id %}
3 {% if log_item.object1 %}
4 <a href="{% url job-detail data.cluster_slug data.job_id %}">Job #{{ data.job_id }}</a> -
5 {% endif %}
6 {% endif %}
7 {% if user.is_superuser %}
8 <a href="{% url user-detail log_item.user.pk %}">{{log_item.user}}</a>
9 {% else %}
10 {{ log_item.user }}
11 {% endif %}
12 started virtual machine {% if log_item.object1_id %}<a href="{% url instance-detail data.cluster_slug data.hostname %}">{{data.hostname}}</a>
13 {% else %}[deleted]{% endif %}
14 {% endwith %}