瀏覽代碼

not sure what I changed

Steve L. Nyemba 8 年之前
父節點
當前提交
2e2d697a06
共有 3 個文件被更改,包括 5 次插入4 次删除
  1. 2 1
      src/api/index.py
  2. 1 1
      src/api/static/js/dashboard.js
  3. 2 2
      src/api/templates/dashboard.html

+ 2 - 1
src/api/index.py

@@ -58,7 +58,8 @@ def home():
 	apps = []
 	try:
 		gReader = factory.instance(type=class_read,args=p)
-		apps = gReader.view('summary/app_names',key=p['uid'])
+		apps = gReader.view('summary/app_names',key=p['uid']).keys()
+		
 	except Exception, e:
 		print (e)
 	return render_template('dashboard.html',context=context,title=title,app_names=apps)

+ 1 - 1
src/api/static/js/dashboard.js

@@ -95,7 +95,7 @@ dashboard = {
             Chartist.Pie('#chartPreferences', {
                 labels: getStatusList,
                 series: getStatusList
-            });
+            },{donut:true});
         }) /// end getStatus
     })
 },

+ 2 - 2
src/api/templates/dashboard.html

@@ -79,7 +79,7 @@
             ]
 
             jx.utils.patterns.observer(lobservers,"init")
-        	dashboard.initChartist();
+        	//dashboard.initChartist();
 
     	});
 	</script>
@@ -156,7 +156,7 @@
                               </a>
                               <ul class="dropdown-menu">
                                   {% for name in app_names %}
-                                <li><a href="#">{{name|safe}}</a></li>
+                                <div class="action"><i class="fa fa-angle-right"></i> {{name|safe}}</div>
 
                                 {% endfor %}
                               </ul>