2020-03-13 15:44:24 +05:30
|
|
|
%div{ class: "broadcast-#{message.broadcast_type}-message #{opts[:preview] && 'preview'} js-broadcast-notification-#{message.id} d-flex",
|
|
|
|
style: broadcast_message_style(message), dir: 'auto' }
|
2020-04-08 14:13:33 +05:30
|
|
|
.flex-grow-1.text-right.pr-2
|
2020-03-13 15:44:24 +05:30
|
|
|
= sprite_icon('bullhorn', size: 16, css_class: 'vertical-align-text-top')
|
2020-04-08 14:13:33 +05:30
|
|
|
%div{ class: !fluid_layout && 'container-limited' }
|
2020-03-13 15:44:24 +05:30
|
|
|
= render_broadcast_message(message)
|
2020-04-08 14:13:33 +05:30
|
|
|
.flex-grow-1.text-right{ style: 'flex-basis: 0' }
|
|
|
|
- if (message.notification? || message.dismissable?) && opts[:preview].blank?
|
2020-05-24 23:13:21 +05:30
|
|
|
%button.broadcast-message-dismiss.js-dismiss-current-broadcast-notification.btn.btn-link.pl-2.pr-2{ 'aria-label' => _('Close'), :type => 'button', data: { id: message.id, expire_date: message.ends_at.iso8601 } }
|
2020-04-08 14:13:33 +05:30
|
|
|
%i.fa.fa-times
|