not sure what I changed

community
Steve L. Nyemba 7 years ago
parent af80dd6e16
commit 2e2d697a06

@ -58,7 +58,8 @@ def home():
apps = [] apps = []
try: try:
gReader = factory.instance(type=class_read,args=p) 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: except Exception, e:
print (e) print (e)
return render_template('dashboard.html',context=context,title=title,app_names=apps) return render_template('dashboard.html',context=context,title=title,app_names=apps)

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

@ -79,7 +79,7 @@
] ]
jx.utils.patterns.observer(lobservers,"init") jx.utils.patterns.observer(lobservers,"init")
dashboard.initChartist(); //dashboard.initChartist();
}); });
</script> </script>
@ -156,7 +156,7 @@
</a> </a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
{% for name in app_names %} {% 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 %} {% endfor %}
</ul> </ul>

Loading…
Cancel
Save