Skip to content

Commit 69993a2

Browse files
committed
Move most critical nodes lists to top-left
and add missing number of nodes that are unchanged.
1 parent a751144 commit 69993a2

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

puppetboard/static/css/puppetboard.css

+4
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ h1.ui.header.no-margin-bottom {
7777
background-color: #989898;
7878
}
7979

80+
.ui.header.unchanged {
81+
color: #89A54E;
82+
}
83+
8084
.ui.label.unchanged {
8185
background-color: #89A54E;
8286
}

puppetboard/templates/index.html

+11-4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ <h1 class="ui header changed no-margin-bottom">
4141
</a>
4242
<span>with status changed</span>
4343
</div>
44+
<div class="column">
45+
<a href="{{url_for('nodes', env=current_env, status='unchanged')}}">
46+
<h1 class="ui header unchanged no-margin-bottom">
47+
{{stats['unchanged']}}
48+
<small>{% if stats['unchanged'] == 1 %} node {% else %} nodes {% endif %}</small>
49+
</h1>
50+
</a>
51+
<span>with status unchanged</span>
52+
</div>
53+
</div>
54+
<div class="four column row">
4455
<div class="column">
4556
<a href="{{url_for('nodes', env=current_env, status='unreported')}}">
4657
<h1 class="ui header unreported no-margin-bottom">
@@ -50,10 +61,6 @@ <h1 class="ui header unreported no-margin-bottom">
5061
</a>
5162
<span>unreported in the last {{ config.UNRESPONSIVE_HOURS }} hours</span>
5263
</div>
53-
</div>
54-
<div class="four column row">
55-
<div class="column">
56-
</div>
5764
<div class="column">
5865
<h1 class="ui header darkblue no-margin-bottom">{{metrics['num_nodes']}}</h1>
5966
<span>Population</span>

0 commit comments

Comments
 (0)