{% extends "header.html" %}
{% block content %}
{% for name, state in data.ctrls_state.items() %}
{% for notification in state %}
{% if notification['level'] in ['WARNING', 'ERROR'] %}
{{name}} {{notification['message']}}
{% endif %}
{% if notification['level'] == 'INFO' %}
{% if g in data.builders %}
{% for t in data.builders[g]['tiers'] %}
{% set d = data.builders[g]['tiers'][t]['DONE'] %}
{% set b = data.builders[g]['tiers'][t]['BUILD'] + data.builders[g]['tiers'][t]['none']
+ data.builders[g]['tiers'][t]['IDLE'] %}
{% set s = b + d if b + d > 0 else 1 %}
{{ t }}: {{ d }} of {{ s }}
{{ (100 * d / s)|round(method='floor')|int }}%
{% endfor %}
{% endif %}
{{ g }} {{ data.generations[g] }}
{% for location in data.locations.values() %}
{% for tier_name in location['generations'][g] %}
{% set tier = location['generations'][g][tier_name] %}
{% set deploy = tier['deploy'] %}
{% set search = tier['search'] %}
{% for replicas_cnt in deploy.hist | sort %}
{{ deploy.hist[replicas_cnt] }}/{{ deploy.total }}
{% endfor %}
{% for replicas_cnt in search.hist | sort %}
{{ search.hist[replicas_cnt] }}/{{ search.total }}