Template:Cluster Status: Difference between revisions

From RCSWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
<div class="row">
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<div style="border: 1px solid #ccc; font-size: 1.25em;">
<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;">
<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>
<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>
{{#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'''. }}
<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>
{{#if: {{{message|}}} | <hr /> {{{message}}} | }}
{{#if: {{{message|}}} | <hr /> {{{message}}} | }}
</div>
</div>
</div>
</div>
</div>
</div>

Revision as of 18:03, 11 August 2020

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