Retrospring/app/views/shared/_announcements.haml

11 lines
485 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
%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