debian-mirror-gitlab/app/views/shared/_broadcast_message.html.haml

13 lines
940 B
Text
Raw Normal View History

2020-06-23 00:09:42 +05:30
- is_banner = message.broadcast_type == 'banner'
%div{ class: "broadcast-message #{'alert-warning' if is_banner} broadcast-#{message.broadcast_type}-message #{opts[:preview] && 'preview'} js-broadcast-notification-#{message.id} gl-display-flex",
2020-03-13 15:44:24 +05:30
style: broadcast_message_style(message), dir: 'auto' }
2020-11-24 15:15:51 +05:30
.gl-flex-grow-1.gl-text-right.gl-pr-3
2020-10-24 23:57:45 +05:30
= sprite_icon('bullhorn', 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-11-24 15:15:51 +05:30
.gl-flex-grow-1.gl-flex-basis-0.gl-text-right
2020-04-08 14:13:33 +05:30
- if (message.notification? || message.dismissable?) && opts[:preview].blank?
2020-11-24 15:15:51 +05:30
%button.broadcast-message-dismiss.js-dismiss-current-broadcast-notification.btn.btn-link.gl-button{ 'aria-label' => _('Close'), :type => 'button', data: { id: message.id, expire_date: message.ends_at.iso8601 } }
= sprite_icon('close', size: 16, css_class: 'gl-icon gl-text-white gl-mx-3!')