2020-05-07 19:30:13 +02:00
|
|
|
.announcement__container
|
2020-04-19 22:38:21 +02:00
|
|
|
- @active_announcements.each do |announcement|
|
2022-11-23 21:00:49 +01:00
|
|
|
.alert.announcement.alert-info.alert-dismissable.d-none{ data: { controller: 'announcement', "announcement-id-value": announcement.id } }
|
2020-05-07 19:30:13 +02:00
|
|
|
.container
|
2023-01-04 13:26:27 +01:00
|
|
|
%button.btn-close{ type: :button, data: { bs_dismiss: :alert, action: "click->announcement#close" } }
|
2020-05-07 19:30:13 +02:00
|
|
|
%p
|
|
|
|
= announcement.content
|
|
|
|
- if announcement.link_present?
|
|
|
|
%a.alert-link{ href: announcement.link_href }= announcement.link_text
|