2017-07-12 04:16:32 -04:00
|
|
|
- breadcrumb_title "Messages"
|
2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Broadcast Messages"
|
2015-12-31 15:08:42 -05:00
|
|
|
|
2013-11-12 07:28:12 -05:00
|
|
|
%h3.page-title
|
|
|
|
Broadcast Messages
|
|
|
|
%p.light
|
2015-12-31 15:08:42 -05: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: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?
|
2015-12-31 17:55:14 -05:00
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Status
|
|
|
|
%th Preview
|
|
|
|
%th Starts
|
|
|
|
%th Ends
|
|
|
|
%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
|
|
|
|
= broadcast_message(message)
|
|
|
|
%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
|
2015-12-31 17:55:14 -05:00
|
|
|
%td
|
|
|
|
= link_to icon('pencil-square-o'), edit_admin_broadcast_message_path(message), title: 'Edit', class: 'btn btn-xs'
|
|
|
|
= link_to icon('times'), admin_broadcast_message_path(message), method: :delete, remote: true, title: 'Remove', class: 'js-remove-tr btn btn-xs btn-danger'
|
2013-11-12 08:20:31 -05:00
|
|
|
|
2016-02-05 10:01:10 -05:00
|
|
|
= paginate @broadcast_messages, theme: 'gitlab'
|