Commit 10849ccc by Kálmán Viktor

dashboard: fixes for datastore detail

parent cc728f9b
...@@ -9,7 +9,7 @@ $(function() { ...@@ -9,7 +9,7 @@ $(function() {
data: { data: {
labels: labels, labels: labels,
datasets: [{ datasets: [{
data: data['data'], data: data.data,
backgroundColor: [ backgroundColor: [
"#57b257", "#57b257",
"#538ccc", "#538ccc",
...@@ -26,7 +26,7 @@ $(function() { ...@@ -26,7 +26,7 @@ $(function() {
tooltips: { tooltips: {
callbacks: { callbacks: {
label: function(item, chartData) { label: function(item, chartData) {
return data['labels'][item.index] + ": " + data['readable_data'][item.index]; return data.labels[item.index] + ": " + data.readable_data[item.index];
} }
} }
}, },
......
...@@ -145,10 +145,10 @@ ...@@ -145,10 +145,10 @@
'> '>
</div> </div>
<div> <div>
{% trans "Total virtual machine disk usage" %}: {% trans "Total disk usage of virtual machines" %}:
<strong>{{ stats.vm_actual_size|filesize }}</strong> <strong>{{ stats.vm_actual_size|filesize }}</strong>
<br /> <br />
{% trans "Actual virtual machine disk usage" %}: {% trans "Total virtual disk usage of virtual machines" %}:
<strong>{{ stats.vm_size|filesize}}</strong> <strong>{{ stats.vm_size|filesize}}</strong>
</div> </div>
</div><!-- .panel-body --> </div><!-- .panel-body -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment