Ticket #3957 (partial) - ganeti_webmgr uses ganeti python namespace:
[ganeti_webmgr.git] / ganeti_web / templates / overview / object_link.html
blob2293c0b63ac7e5642985d07b94207329e23aa076
1 {% load webmgr_tags %}
3 {% with error.obj|class_name as class %}
4 <td class="{{class}} name">
5 {% ifequal class 'Cluster' %}
6 <a href="{% url cluster-detail error.obj.slug %}">{{ error.obj|abbreviate_fqdn }}</a>
7 {% endifequal %}
8 {% ifequal class 'VirtualMachine' %}
9 <a href="{% url instance-detail error.obj.cluster.slug error.obj.hostname %}">{{ error.obj|abbreviate_fqdn }}</a>
10 {% endifequal %}
11 {% ifequal class 'Node' %}
12 <a href="{% url node-detail error.obj.cluster.slug error.obj.hostname %}">{{ error.obj|abbreviate_fqdn }}</a>
13 {% endifequal %}
14 </td>
15 {% endwith %}