Merge tag '0.10.2'
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / overview / object_link.html
blob2813ba561d90f3c5a00a29345946f19085aceb05
1 {% load webmgr_tags %}
3 {% with record.obj|class_name as class %}
4 <div class ="{{class}}">
5 {% ifequal class 'Cluster' %}
6 <a href="{% url cluster-detail record.obj.slug %}">{{ record.obj|abbreviate_fqdn }}</a>
7 {% endifequal %}
8 {% ifequal class 'VirtualMachine' %}
9 <a href="{% url instance-detail record.obj.cluster.slug record.obj.hostname %}">{{ record.obj|abbreviate_fqdn }}</a>
10 {% endifequal %}
11 {% ifequal class 'Node' %}
12 <a href="{% url node-detail record.obj.cluster.slug record.obj.hostname %}">{{ record.obj|abbreviate_fqdn }}</a>
13 {% endifequal %}
14 </div>
15 {% endwith %}