Skip to content

Commit

Permalink
Maintenance Banner Copy Update (#4515)
Browse files Browse the repository at this point in the history
* Center the maintenance banner content

* 'grid-container' on the body, not just the text.

* doing site upgrade -> performing maintenance
  • Loading branch information
jperson1 authored Dec 6, 2024
1 parent 677516c commit 535f948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,6 @@
"start": datetime(2024, 12, 5, 17, tzinfo=timezone.utc),
"end": datetime(2024, 12, 10, 17, tzinfo=timezone.utc),
"template_name": "maintenance_20241210.html",
"message": "FAC.gov will be doing a site upgrade on Tuesday, December 10, 2024 between 12:00 p.m. and 6:00 p.m ET. During this period, the entire website will be unavailable.",
"message": "FAC.gov will be performing maintenance on Tuesday, December 10, 2024 between 12:00 p.m. and 6:00 p.m ET. During this period, the entire website will be unavailable.",
},
]
4 changes: 2 additions & 2 deletions backend/templates/includes/maintenance_banner.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<section class="usa-alert usa-alert--warning margin-top-0" aria-label="Site alert">
<div class="usa-alert__body grid-container">
<h4 class="usa-alert__heading">Scheduled system upgrade</h4>
<h4 class="usa-alert__heading">Scheduled system maintenance</h4>

{% comment %} If a message is given, use it. If not, display a generic message with the timeframe. {% endcomment %}
<p class="usa-alert__text">
{% if MAINTENANCE_BANNER_MESSAGE %}
{{ MAINTENANCE_BANNER_MESSAGE }}
{% else %}
FAC.gov will be doing a site upgrade from {{ MAINTENANCE_BANNER_START_TIME|date:"N j, Y, f A" }} to {{ MAINTENANCE_BANNER_END_TIME|date:"N j, Y, f A" }}.
FAC.gov will be performing maintenance from {{ MAINTENANCE_BANNER_START_TIME|date:"N j, Y, f A" }} to {{ MAINTENANCE_BANNER_END_TIME|date:"N j, Y, f A" }}.
During this period, the entire website will be unavailable.
{% endif %}
</p>
Expand Down

0 comments on commit 535f948

Please sign in to comment.