Retrospring/app/views/shared/_announcements.html.haml

10 lines
511 B
Plaintext
Raw Normal View History

.announcement__container
- @active_announcements.each do |announcement|
.alert.announcement.alert-info.alert-dismissable.d-none{ data: { controller: 'announcement', "announcement-id-value": announcement.id } }
.container
2023-01-04 04:26:27 -08:00
%button.btn-close{ type: :button, data: { bs_dismiss: :alert, action: "click->announcement#close" } }
%p
= announcement.content
- if announcement.link_present?
%a.alert-link{ href: announcement.link_href }= announcement.link_text