2020-05-07 10:30:13 -07:00
|
|
|
.announcement__container
|
2020-04-19 13:38:21 -07:00
|
|
|
- @active_announcements.each do |announcement|
|
2022-11-23 12:00:49 -08:00
|
|
|
.alert.announcement.alert-info.alert-dismissable.d-none{ data: { controller: 'announcement', "announcement-id-value": announcement.id } }
|
2023-01-13 09:36:47 -08:00
|
|
|
.container.d-flex
|
|
|
|
%p.flex-grow-1
|
2020-05-07 10:30:13 -07:00
|
|
|
= announcement.content
|
|
|
|
- if announcement.link_present?
|
|
|
|
%a.alert-link{ href: announcement.link_href }= announcement.link_text
|
2023-01-13 09:36:47 -08:00
|
|
|
%button.btn-close.ms-auto.flex-shrink-0{ type: :button, data: { action: "click->announcement#close" } }
|