Template:Cluster Status: Difference between revisions

From RCSWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
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">
<div style="padding-top: 6px; padding-bottom: 5px;">
<div style="border: 1px solid #ccc; font-size: 1.25em;">
 
<div style="float:left; margin: 0.5em; height: 1.5em; width:1.5em; border-radius: 50%; display: inline-block; background-color: #{{#ifeq: {{{status|}}} | green | 36d42a }}{{#ifeq: {{{status|}}} | yellow | f3ba1f }}{{#ifeq: {{{status|}}} | red | b31d1d }}{{#ifeq: {{{status|grey}}} | grey | ccc}}; "></div>
<strong>{{{cluster|Cluster}}} status:
{{#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 to '''green''', '''yellow''', or '''red'''. }}
{{#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>

Latest revision as of 21:56, 31 January 2023

Cluster status: Unknown! Please set status to one of: green, yellow, red