Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -116,6 +116,7 @@ def index():
|
||||
'unchanged': 0,
|
||||
'failed': 0,
|
||||
'unreported': 0,
|
||||
'noop': 0
|
||||
}
|
||||
|
||||
for node in nodes:
|
||||
@@ -125,6 +126,8 @@ def index():
|
||||
stats['changed'] += 1
|
||||
elif node.status == 'failed':
|
||||
stats['failed'] += 1
|
||||
elif node.status == 'noop':
|
||||
stats['noop'] += 1
|
||||
else:
|
||||
stats['unchanged'] += 1
|
||||
|
||||
|
||||
@@ -8,5 +8,6 @@ DEV_LISTEN_HOST = '127.0.0.1'
|
||||
DEV_LISTEN_PORT = 5000
|
||||
UNRESPONSIVE_HOURS = 2
|
||||
ENABLE_QUERY = True
|
||||
LOCALISE_TIMESTAMP = True
|
||||
LOGLEVEL = 'info'
|
||||
REPORTS_COUNT = 10
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<div class="ui vertical grid">
|
||||
<div class="three column row">
|
||||
<div class="four column row">
|
||||
<div class="column">
|
||||
<a href="nodes?status=failed">
|
||||
<h1 class="ui red header no-margin-bottom">
|
||||
@@ -11,6 +11,15 @@
|
||||
</a>
|
||||
<span>with status failed</span>
|
||||
</div>
|
||||
<div class="column">
|
||||
<a href="nodes?status=noop">
|
||||
<h1 class="ui header purple no-margin-bottom">
|
||||
{{stats['noop']}}
|
||||
<small>{% if stats['noop']== 1 %} node {% else %} nodes {% endif %}</small>
|
||||
</h1>
|
||||
</a>
|
||||
<span>with status pending</span>
|
||||
</div>
|
||||
<div class="column">
|
||||
<a href="nodes?status=changed">
|
||||
<h1 class="ui header green no-margin-bottom">
|
||||
@@ -30,7 +39,9 @@
|
||||
<span>unreported in the last {{ config.UNRESPONSIVE_HOURS }} hours</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="three column row">
|
||||
<div class="four column row">
|
||||
<div class="column">
|
||||
</div>
|
||||
<div class="column">
|
||||
<h1 class="ui header darkblue no-margin-bottom">{{metrics['num_nodes']}}</h1>
|
||||
<span>Population</span>
|
||||
@@ -70,6 +81,8 @@
|
||||
green
|
||||
{% elif node.status == 'unreported' %}
|
||||
black
|
||||
{% elif node.status == 'noop' %}
|
||||
blue
|
||||
{% endif %}
|
||||
" href="{{url_for('report_latest', node_name=node.name)}}">
|
||||
{{node.status}}
|
||||
|
||||
@@ -42,9 +42,11 @@
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/0.12.0/javascript/semantic.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js"></script>
|
||||
{% if config.LOCALISE_TIMESTAMP %}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js"></script>
|
||||
<script src="{{ url_for('static', filename='js/timestamps.js')}}"></script>
|
||||
{% endif %}
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.13.3/jquery.tablesorter.min.js"></script>
|
||||
<script src="{{ url_for('static', filename='js/timestamps.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='js/lists.js')}}"></script>
|
||||
<script src="{{url_for('static', filename='js/tables.js')}}"></script>
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
green
|
||||
{% elif node.status == 'unreported' %}
|
||||
black
|
||||
{% elif node.status == 'noop' %}
|
||||
blue
|
||||
{% endif %}
|
||||
" href="{{url_for('report_latest', node_name=node.name)}}">
|
||||
{{node.status}}
|
||||
|
||||
Reference in New Issue
Block a user