{% load base_taglib %}
{## If there is a current or future downtime ##}
{%if next_downtime%}
{## Downtime may be psu-base or Banner downtime (if feature enabled) ##}
{%if active_downtime%}
{%if next_downtime.downtime_type != "banner"%}
{%fa fa-exclamation-triangle%}
This site currently undergoing scheduled maintenance.
Please check back later.
{%elif sid and next_downtime.minutes_since_start > 30 %}
{%fa fa-medkit%}
Connected systems just came back up from maintenance.
If you experience any issues, please contact
OIT-webdev-group@pdx.edu
to report the issue.
{%elif sid%}
{%fa fa-exclamation-triangle%}
Connected systems are scheduled to be down for {{next_downtime.reason}}. This site may go offline at any moment. You should check back later to avoid any potential issues.
Our systems are expected to be back online {{next_downtime.until_time_display}}
({{next_downtime.end_cd.humanized}})
{%else%}
{%fa fa-exclamation-triangle%}
Our systems are currently down for {{next_downtime.reason}}.
Our systems are expected to be back online {{next_downtime.until_time_display}}
({{next_downtime.end_cd.humanized}})
{%endif%}
{%elif next_downtime.is_future%}
{%fa fa-clock-o%}
{%if next_downtime.downtime_type != "banner"%}
This site will be going offline in {{next_downtime.minutes_until_start}} minutes.
{{next_downtime.reason}}
{%else%}
Our systems will be going offline in {{next_downtime.minutes_until_start}} minutes for {{next_downtime.reason}}.