Revision bd80f212 ui/templates/machines_icon.html
b/ui/templates/machines_icon.html | ||
---|---|---|
72 | 72 |
{% trans "Image Size" %}: <span class="image-size-data">2.3</span> (GB) |
73 | 73 |
</div> |
74 | 74 |
<div class="vm-stats metadata-column"> |
75 |
{% trans "CPU" %} <br /> |
|
76 |
<img src="http://stats.okeanos.grnet.gr/test/cpu-bar.png" class="cpu metadata-bar" /> |
|
77 |
{% trans "Net" %} <br /> |
|
78 |
<img src="http://stats.okeanos.grnet.gr/test/net-bar.png" class="net metadata-bar" /><br /> |
|
75 |
<div class='stat-label'>{% trans "CPU" %}</div> |
|
76 |
<div class='stat-content'> |
|
77 |
<img src="./static/icons/indicators/small/progress.gif" class="cpu busy" /> |
|
78 |
<div class='stat-error'>{% trans "Could not fetch CPU stats." %}</div> |
|
79 |
</div> |
|
80 |
<div class='stat-label'>{% trans "Net" %}</div> |
|
81 |
<div class='stat-content'> |
|
82 |
<img src="./static/icons/indicators/small/progress.gif" class="net busy" /> |
|
83 |
<div class='stat-error'>{% trans "Could not fetch Net stats." %}</div> |
|
84 |
</div> |
|
85 |
<a href="#" class="stats-report">{% trans "Full report" %}</a> |
|
79 | 86 |
</div> |
80 | 87 |
<div class="vm-metadata metadata-column"> |
81 | 88 |
<div class="metadata-left"> |
... | ... | |
218 | 225 |
$(this).find('.info-label').removeClass('darker'); |
219 | 226 |
$(this).parent().parent().removeClass('light-background'); |
220 | 227 |
} else { |
221 |
// make the get stats call |
|
228 |
// reset stats |
|
229 |
$(this).closest('.machine-container').find('.vm-stats div.stat-error').hide(); |
|
230 |
$(this).closest('.machine-container').find('.vm-stats img.cpu').attr('src', './static/icons/indicators/small/progress.gif').addClass('busy').show(); |
|
231 |
$(this).closest('.machine-container').find('.vm-stats img.net').attr('src', './static/icons/indicators/small/progress.gif').addClass('busy').show(); |
|
232 |
// get new stats |
|
222 | 233 |
var serverID = $(this).closest('.machine-container').attr('id'); |
223 | 234 |
get_server_stats(serverID); |
224 | 235 |
// toggle drop-down pane |
Also available in: Unified diff