Skip to content
Snippets Groups Projects
Commit e84df4c1 authored by Tomasz Wolniewicz's avatar Tomasz Wolniewicz
Browse files

Merge branch 'cherry-pick-3907a9ea' into 'psnc-production'

Merge branch 'master' into 'master'

See merge request !23
parents ac1d9edb 6ee8414d
No related branches found
No related tags found
1 merge request!23Merge branch 'master' into 'master'
...@@ -7,28 +7,32 @@ ...@@ -7,28 +7,32 @@
{% set alert_text = 'status OK' %} {% set alert_text = 'status OK' %}
{% set error_message = '' %} {% set error_message = '' %}
{% set problem_class = ' feed-ok' %} {% set problem_class = ' feed-ok' %}
{% if federation.fed.feed_problem %} {% if federation.fed.status == 6 %}
{% set alert_icon = 'orange_dot.png' %} {% if federation.fed.feed_problem %}
{% set alert_text = 'metadata update problem' %} {% set alert_icon = 'orange_dot.png' %}
{% if federation.fed.status == 6 %} {% set alert_text = 'metadata update problem' %}
{% set problem_class = ' feed-problem' %} {% set problem_class = ' feed-problem' %}
{% endif %} {% endif %}
{% endif %} {% if federation.fed.valid_sec <= 0 %}
{% set alert_icon = 'red_dot.png' %}
{% set alert_text = 'metadata dropped' %}
{% set problem_class = ' feed-problem' %}
{% elseif federation.fed.valid_sec <= constant('VALIDITY_ALERT_THRESHOLD') %}
{% set alert_icon = 'orange_dot.png' %}
{% set alert_text = 'validUnitl under ' ~ constant('VALIDITY_ALERT_THRESHOLD')/3600 ~ ' hours' %}
{% elseif federation.fed.valid_sec < constant('VALIDITY_WARNING_THRESHOLD') %}
{% set alert_icon = 'blue_dot.png' %}
{% set problem_class = ' feed-problem' %}
{% set alert_text = 'validUnitl between ' ~ constant('VALIDITY_ALERT_THRESHOLD')/3600 ~ ' and ' ~ constant('VALIDITY_WARNING_THRESHOLD')/3600 ~ ' hours' %}
{% endif %}
{% endif %}
{% if federation.information_missing %} {% if federation.information_missing %}
{% set error_message = error_message ~ ' information missing' %} {% set error_message = error_message ~ ' information missing' %}
{% endif %} {% endif %}
{% if federation.fed.valid_sec <= 0 %} {% if federation.fed.status == 5 %}
{% set alert_icon = 'red_dot.png' %} {% set alert_icon = 'red_dot.png' %}
{% set alert_text = 'metadata dropped' %} {% endif %}
{% set problem_class = ' feed-problem' %}
{% elseif federation.fed.valid_sec <= constant('VALIDITY_ALERT_THRESHOLD') %}
{% set alert_icon = 'orange_dot.png' %}
{% set alert_text = 'validUnitl under ' ~ constant('VALIDITY_ALERT_THRESHOLD')/3600 ~ ' hours' %}
{% elseif federation.fed.valid_sec < constant('VALIDITY_WARNING_THRESHOLD') %}
{% set alert_icon = 'blue_dot.png' %}
{% set problem_class = ' feed-problem' %}
{% set alert_text = 'validUnitl between ' ~ constant('VALIDITY_ALERT_THRESHOLD')/3600 ~ ' and ' ~ constant('VALIDITY_WARNING_THRESHOLD')/3600 ~ ' hours' %}
{% endif %}
<div id="{{ federation.fed.code }}_option_div" class="member-div{{ problem_class }}" style="padding-left: 1em;{% <div id="{{ federation.fed.code }}_option_div" class="member-div{{ problem_class }}" style="padding-left: 1em;{%
if federation.information_missing if federation.information_missing
%}color: red;{% %}color: red;{%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment