adds pending nodes counter to the main dashboard

* nodes with state noop are counted towards the "pending" column in the main
  dashboard
* changes top layout to four-column
This commit is contained in:
Anna Janackova
2014-04-25 16:25:42 +02:00
parent bfdc778a81
commit 4c50b82768
3 changed files with 20 additions and 2 deletions

View File

@@ -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