diff options
Diffstat (limited to 'horizon/horizon/dashboards/syspanel/templates/syspanel/services/_list.html')
-rw-r--r-- | horizon/horizon/dashboards/syspanel/templates/syspanel/services/_list.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/horizon/horizon/dashboards/syspanel/templates/syspanel/services/_list.html b/horizon/horizon/dashboards/syspanel/templates/syspanel/services/_list.html new file mode 100644 index 00000000..9bda1f4c --- /dev/null +++ b/horizon/horizon/dashboards/syspanel/templates/syspanel/services/_list.html @@ -0,0 +1,65 @@ +{%load i18n%} +{% load sizeformat %} +<table class="wide"> + <tr> + <th>{% trans "Service"%}</th> + <th>{% trans "System Stats"%}</th> + <th>{% trans "Enabled"%}</th> + <th>{% trans "Up"%}</th> + <th>{% trans "Actions"%}</th> + </tr> + + {% for service in services %} + <tr class='{{service.up|yesno:"good,bad"}} {{service.disabled|yesno:"medium,"}} {% cycle 'odd' 'even' %}'> + <td> + {{service.type}} <br/> + ( {{service.host}} ) + </td> + {% if service.type == 'nova-compute' %} + <td> + <ul> + <li> + {% trans "Hypervisor"%}: {{service.stats.hypervisor_type}}( {{service.stats.cpu_info.features|join:', '}}) + </li> + <li> + {% trans "Allocable Cores"%}: + {{service.stats.max_vcpus}} + ({{service.stats.vcpus_used}} Used, {{service.stats.vcpus}} Physical/Virtual) + </li> + <li> + {% trans "Allocable Storage"%}: + {{service.stats.max_gigabytes|diskgbformat}} + ({{service.stats.local_gb_used|diskgbformat}} Used, {{service.stats.local_gb|diskgbformat}} Physical) + </li> + <li> + {% trans "System Ram"%}: + {{service.stats.memory_mb|mbformat}} + ({{service.stats.memory_mb_used|mbformat}} Used) + </li> + </ul> + </td> + {% else %} + <td> - </td> + {% endif %} + <td>{{service.disabled|yesno:"Disabled,Enabled"}}</td> + <td>{{service.up}}</td> + <td id="actions"> + <ul> + <li class="form">{% include "syspanel/services/_toggle.html" with form=service_toggle_enabled_form %}</li> + </ul> + </td> + </tr> + {% endfor %} + {% for service in other_services %} + <tr class='{{service.up|yesno:"good,bad"}} {{service.disabled|yesno:"medium,"}} {% cycle 'odd' 'even' %}'> + <td> + {{service.type}} <br/> + ( {{service.host}} ) + </td> + <td> - </td> + <td>{{service.disabled|yesno:"Disabled,Enabled"}}</td> + <td>{{service.up}}</td> + <td></td> + </tr> + {% endfor %} +</table> |