From 40ae32c25a626a3945d7aa9cc3e66948e40e42ca Mon Sep 17 00:00:00 2001
From: Oláh István Gergely <olah.istvan.gergely@cloud.bme.hu>
Date: Thu, 17 Apr 2014 10:38:30 +0200
Subject: [PATCH] dashboard: replace node in node box

---
 circle/dashboard/templates/dashboard/index-nodes.html | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/circle/dashboard/templates/dashboard/index-nodes.html b/circle/dashboard/templates/dashboard/index-nodes.html
index 7d895e4..838355d 100644
--- a/circle/dashboard/templates/dashboard/index-nodes.html
+++ b/circle/dashboard/templates/dashboard/index-nodes.html
@@ -15,11 +15,15 @@
   </div >
   <div class="list-group" id="node-list-view">
     <div id="dashboard-node-list">  
-    {% for i in nodes %}
-    <a href="{% url "dashboard.views.node-detail" pk=i.pk %}" class="list-group-item">
-    <i class="icon-{% if i.enabled == True %}play-sign{% else %}pause{% endif %}"></i> {{ i.name }} 
+      {% for i in nodes %}
+      <a href="{{ i.get_absolute_url }}" class="list-group-item">
+        <span class="index-node-list-name">
+          <i class="{{ i.get_status_icon }}" title="{{ i.get_status_display }}"></i>
+          {{ i.name }}
+        </span>
+      <div style="clear: both;"></div>
       </a>
-    {% endfor %}
+      {% endfor %}
     </div>
     <div href="#" class="list-group-item list-group-footer">
       <div class="row">
--
libgit2 0.26.0