Template:Cluster Status: Difference between revisions

From RCSWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<table role="presentation" style="border: 1px solid #a2a9b1; background-color: #f8f9fa; width: 80%; text-align: left; margin: 1em auto 1em auto;">
<tr>
<td style="width: 5em; text-align: center;">
<span style="margin: 0.5em; height: 1.5em; width:1.5em; border-radius: 50%; display: inline-block; vertical-align: middle; background-color: #{{#ifeq: {{{status|}}} | green | 24971b }}{{#ifeq: {{{status|}}} | yellow | f3ba1f }}{{#ifeq: {{{status|}}} | red | b31d1d }}{{#ifeq: {{{status|grey}}} | grey | ccc}}; "></span >
</td>


<div class="row">
<td>
<div class="col-md-12" style="padding: 0px;">
<div style="padding-top: 6px; padding-bottom: 5px;">
<div style="border: 3px solid #{{#ifeq: {{{status|}}} | green | 24971b }}{{#ifeq: {{{status|}}} | yellow | f3ba1f }}{{#ifeq: {{{status|}}} | red | b31d1d }}{{#ifeq: {{{status|grey}}} | grey | ccc}}; font-size: 1.25em; padding: 0.75em; margin: 0.5em 0 0.5em 0.5em;">
 
<div style="float:left; margin: 0.5em; height: 1.5em; width:1.5em; border-radius: 50%; display: inline-block; background-color: #{{#ifeq: {{{status|}}} | green | 24971b }}{{#ifeq: {{{status|}}} | yellow | f3ba1f }}{{#ifeq: {{{status|}}} | red | b31d1d }}{{#ifeq: {{{status|grey}}} | grey | ccc}}; "></div>
<strong>Current HPC Status:
<strong>{{#ifeq: {{{status|}}} | green | {{{title|All systems operational}}} }}{{#ifeq: {{{status|}}} | yellow | {{{title|Minor system issues}}} }}{{#ifeq: {{{status|}}} | red | {{{title|Major system issues}}} }}{{#ifeq: {{{status|grey}}} | grey | Unknown Status: Please set status to one of: green, yellow, red }}</strong>
{{#ifeq: {{{status|}}} | green | {{{title|All systems operational}}} }}{{#ifeq: {{{status|}}} | yellow | {{{title|Minor system issues}}} }}{{#ifeq: {{{status|}}} | red | {{{title|Major system issues}}} }}{{#ifeq: {{{status|grey}}} | grey | Unknown! Please set status to one of: green, yellow, red }}</strong>
{{#if: {{{message|}}} | <hr /> {{{message}}} | }}
{{#if: {{{message|}}} | <hr /> {{{message}}} | }}
</div>
</div>
</div>
 
</div>
</td>
</table>

Revision as of 18:19, 11 August 2020

Current HPC Status: Unknown! Please set status to one of: green, yellow, red