2020-06-22 08:08:47 -04:00
|
|
|
- breadcrumb_title _("Messages")
|
|
|
|
- page_title _("Broadcast Messages")
|
2015-12-31 15:08:42 -05:00
|
|
|
|
2013-11-12 07:28:12 -05:00
|
|
|
%h3.page-title
|
2021-04-12 17:11:12 -04:00
|
|
|
= _('Broadcast Messages')
|
2013-11-12 07:28:12 -05:00
|
|
|
%p.light
|
2021-04-12 17:11:12 -04:00
|
|
|
= _('Broadcast messages are displayed for every user and can be used to notify users about scheduled maintenance, recent upgrades and more.')
|
2015-12-31 15:08:42 -05:00
|
|
|
|
2015-12-31 15:19:13 -05:00
|
|
|
= render 'form'
|
2013-11-12 07:28:12 -05:00
|
|
|
|
2015-12-31 17:55:14 -05:00
|
|
|
%br.clearfix
|
2013-11-12 07:28:12 -05:00
|
|
|
|
2016-12-23 05:27:41 -05:00
|
|
|
- if @broadcast_messages.any?
|
2020-05-26 17:07:45 -04:00
|
|
|
%table.table.table-responsive
|
2015-12-31 17:55:14 -05:00
|
|
|
%thead
|
|
|
|
%tr
|
2021-04-12 17:11:12 -04:00
|
|
|
%th= _('Status')
|
|
|
|
%th= _('Preview')
|
|
|
|
%th= _('Starts')
|
|
|
|
%th= _('Ends')
|
|
|
|
%th= _(' Target Path')
|
|
|
|
%th= _(' Type')
|
2015-12-31 17:55:14 -05:00
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- @broadcast_messages.each do |message|
|
|
|
|
%tr
|
|
|
|
%td
|
2016-01-13 11:46:32 -05:00
|
|
|
= broadcast_message_status(message)
|
2015-12-31 17:55:14 -05:00
|
|
|
%td
|
2020-01-09 19:07:56 -05:00
|
|
|
= broadcast_message(message, preview: true)
|
2015-12-31 17:55:14 -05:00
|
|
|
%td
|
2016-01-13 12:01:25 -05:00
|
|
|
= message.starts_at
|
2015-12-31 17:55:14 -05:00
|
|
|
%td
|
2016-01-13 12:01:25 -05:00
|
|
|
= message.ends_at
|
2019-12-02 10:06:36 -05:00
|
|
|
%td
|
|
|
|
= message.target_path
|
2020-01-09 19:07:56 -05:00
|
|
|
%td
|
|
|
|
= message.broadcast_type.capitalize
|
2020-07-22 08:09:42 -04:00
|
|
|
%td.gl-white-space-nowrap.gl-display-flex
|
2021-04-12 17:11:12 -04:00
|
|
|
= link_to sprite_icon('pencil-square', css_class: 'gl-icon'), edit_admin_broadcast_message_path(message), title: _('Edit'), class: 'btn btn-icon gl-button'
|
|
|
|
= link_to sprite_icon('remove', css_class: 'gl-icon'), admin_broadcast_message_path(message), method: :delete, remote: true, title: _('Remove'), class: 'js-remove-tr btn btn-icon gl-button btn-danger ml-2'
|
2013-11-12 08:20:31 -05:00
|
|
|
|
2016-02-05 10:01:10 -05:00
|
|
|
= paginate @broadcast_messages, theme: 'gitlab'
|