00e8700433
Closes #3046
37 lines
1 KiB
Text
37 lines
1 KiB
Text
- page_title "Broadcast Messages"
|
|
|
|
%h3.page-title
|
|
Broadcast Messages
|
|
%p.light
|
|
Broadcast messages are displayed for every user and can be used to notify
|
|
users about scheduled maintenance, recent upgrades and more.
|
|
|
|
= render 'form'
|
|
|
|
%br.clearfix
|
|
|
|
-if @broadcast_messages.any?
|
|
%table.table
|
|
%thead
|
|
%tr
|
|
%th Status
|
|
%th Preview
|
|
%th Starts
|
|
%th Ends
|
|
%th
|
|
%tbody
|
|
- @broadcast_messages.each do |message|
|
|
%tr
|
|
%td
|
|
= message.status
|
|
%td
|
|
= broadcast_message(message)
|
|
%td
|
|
= message.starts_at.to_s(:iso861)
|
|
%td
|
|
= message.ends_at.to_s(:iso861)
|
|
%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'
|
|
|
|
= paginate @broadcast_messages
|