Merge branch 'develop' into feature/search_autocomplete_haste
[ganeti_webmgr.git] / ganeti / templates / overview / used_resources.html
blob88837c6866f289584afc1a231d82ca7f2caf81a2
1 {# template used when resources data is included in another page #}
3 {% include "overview/used_resources_data.html" %}
5 <script type="text/javascript" src="{{MEDIA_URL}}/js/jquery.progressbar.js"></script>
6 <script type="text/javascript">
7 var PBAR_CONF = {
8 steps: 0,
9 showText: true,
10 textFormat: 'fraction',
11 width: 120,
12 boxImage: '{{MEDIA_URL}}/images/progressbar/progressbar.gif',
13 barImage: {
14 0: '{{MEDIA_URL}}/images/progressbar/progressbg_green.gif',
15 30: '{{MEDIA_URL}}/images/progressbar/progressbg_yellow.gif',
16 50: '{{MEDIA_URL}}/images/progressbar/progressbg_orange.gif',
17 75: '{{MEDIA_URL}}/images/progressbar/progressbg_red.gif'
21 $(".used_resources .ram, .used_resources .disk, .used_resources .vcpus");
22 $(".used_resources .ram, .used_resources .disk, .used_resources .vcpus").progressBar(PBAR_CONF);
23 </script>