From f5c4fc6b3e2a653e773142d9941d78e3d8ef86ca Mon Sep 17 00:00:00 2001
From: Nyíri Tamás <nyiri.tamas@cloud.bme.hu>
Date: Fri, 4 Sep 2015 14:07:45 +0200
Subject: [PATCH] Changed location of buttons. Added link to VM list. fix #420

---
 circle/dashboard/templates/dashboard/template-edit.html | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/circle/dashboard/templates/dashboard/template-edit.html b/circle/dashboard/templates/dashboard/template-edit.html
index 19649de..0e8a096 100644
--- a/circle/dashboard/templates/dashboard/template-edit.html
+++ b/circle/dashboard/templates/dashboard/template-edit.html
@@ -170,13 +170,21 @@
     {% if show_graph %}
       <div class="panel panel-default">
         <div class="panel-heading">
-          <div class="pull-right graph-buttons">
-            {% include "dashboard/_graph-time-buttons.html" %}
-          </div>
           <h3 class="no-margin"><i class="fa fa-area-chart"></i> {% trans "Graphs" %}</h3>
         </div>
-        <div class="text-center graph-images">
-          <img src="{% url "dashboard.views.template-graph" object.pk "instances" graph_time %}"/>
+        <div class="text-center panel-body">
+          <div class="graph-buttons">
+            {% include "dashboard/_graph-time-buttons.html" %}
+          </div>
+          <div class="text-center graph-images">
+            <img src="{% url "dashboard.views.template-graph" object.pk "instances" graph_time %}"/>
+          </div>
+
+          {% if request.user.is_superuser %}
+            <a  href="{% url "dashboard.views.vm-list" %}?s=template:{{object.pk}}&stype=all">
+              {% trans "List all template instances" %}
+            </a>
+          {% endif %}
         </div>
       </div>
     {% endif %}
--
libgit2 0.26.0