Retrospring/app/views/shared/_announcements.haml

11 lines
482 B
Plaintext
Raw Normal View History

.announcement__container
- @active_announcements.each do |announcement|
.alert.announcement.alert-info.alert-dismissable.d-none{ data: { 'announcement-id': announcement.id } }
.container
2020-05-10 13:27:39 -07:00
%button.close{ type: :button, data: { dismiss: :alert } }
%span{ aria: { hidden: true} } ×
%p
= announcement.content
- if announcement.link_present?
%a.alert-link{ href: announcement.link_href }= announcement.link_text