<%= t('qa_server.monitor_status.summary.title') %>

<%= t('qa_server.monitor_status.summary.summary_table') %>

<%= t('qa_server.monitor_status.summary.authorities') %> <%= t('qa_server.monitor_status.summary.authorities_with_failures') %> <%= t('qa_server.monitor_status.summary.passing_tests') %> <%= t('qa_server.monitor_status.summary.failing_tests') %> <%= t('qa_server.monitor_status.summary.total_tests') %>
<%= @presenter.authorities_count %> <%= @presenter.failing_authorities_count %> <%= @presenter.passing_tests_count%> <%= @presenter.failing_tests_count %> <%= @presenter.tests_count %>

<%= t('qa_server.monitor_status.summary.last_updated', date: @presenter.last_updated) %>

<% if @presenter.failures?%>

<%= t('qa_server.monitor_status.failures.title') %>

<% current_authority = nil %> <% @presenter.failures.each do |status| %> <% unless status[:authority_name] == current_authority %> <% current_authority = status[:authority_name] %> <% end %> <% end %>
<%= t('qa_server.monitor_status.failures.status') %> <%= t('qa_server.monitor_status.failures.subauthority') %> <%= t('qa_server.monitor_status.failures.service') %> <%= t('qa_server.monitor_status.failures.action') %> <%= t('qa_server.monitor_status.failures.url') %> <%= t('qa_server.monitor_status.failures.errmsg') %>
<%= current_authority %>
<%= @presenter.status_label(status) %> <%= status[:subauthority_name] %> <%= status[:service] %> <%= status[:action] %> <%= status[:url] %> <%= status[:err_message] %>
<% end %>