Skip to content

Commit

Permalink
Update notification banner for Sept v10 launch (#7410)
Browse files Browse the repository at this point in the history
* Update notification banner for Sept v10 launch

* Update main script
  • Loading branch information
emily dela cruz authored Sep 17, 2024
1 parent ba38962 commit 6d4fb98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions source/_static/js/myscript-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ $(document).ready(function () {

// Notification Banner

// Fallback for when a notification CTA expires - ie. webinar happens
// Fallback for when a notification CTA expires
const dateInFuture = (value) =>
new Date().getTime() <= new Date(value).getTime();
const expiryDate = '2024-09-10T00:00:00-0500';
// 2024-09-10 @ 12am EST
const expiryDate = '2024-11-10T00:00:00-0500';
// 12am EST
const fallback_url =
'https://mattermost.com/solutions/mattermost-for-microsoft-teams/';
const fallback_text = 'Learn more about Mattermost for Microsoft Teams »';
Expand All @@ -85,7 +85,7 @@ $(document).ready(function () {
// So it will show up for new announcements
// Keep "mm_notification_banner__" at the beginning of the key
// Add system to clean out storage items that are no longer needed
let notification_banner_key = 'mm_notification_banner__ed-survey-announcement';
let notification_banner_key = 'mm_notification_banner__v10-mst-sept';
if (!dateInFuture(expiryDate)) {
notification_banner_key = 'mm_notification_banner__fallback-mst';
}
Expand Down
2 changes: 1 addition & 1 deletion source/_templates/custom-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<span aria-hidden="true">×</span>
</a>
<div class="notification-bar__wrapper">
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfWe9qqwYGdTYBsuXFjBloASNNwI8WwInpV-ycflIA4J7zIUg/viewform?usp=sf_link" target="_blank" class="notification-bar__link"><img src="{{ pathto('_static/images/notification-bar/icon-megaphone.svg', 1) }}" alt="">Share your thoughts on Mattermost product training and documentation »</a>
<a href="https://mattermost.com/blog/microsoft-teams-m365-mission-critical-workflows/" target="_blank" class="notification-bar__link"><img src="{{ pathto('_static/images/notification-bar/icon-megaphone.svg', 1) }}" alt="">Mattermost v10.0 is now available! Learn what's new »</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 6d4fb98

Please sign in to comment.