debian-mirror-gitlab/app/views/admin/broadcast_messages/index.html.haml
2020-08-09 17:41:57 +05:30

44 lines
1.3 KiB
Text

- breadcrumb_title _("Messages")
- 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.table-responsive
%thead
%tr
%th Status
%th Preview
%th Starts
%th Ends
%th Target Path
%th Type
%th  
%tbody
- @broadcast_messages.each do |message|
%tr
%td
= broadcast_message_status(message)
%td
= broadcast_message(message, preview: true)
%td
= message.starts_at
%td
= message.ends_at
%td
= message.target_path
%td
= message.broadcast_type.capitalize
%td.gl-white-space-nowrap
= link_to sprite_icon('pencil-square'), edit_admin_broadcast_message_path(message), title: 'Edit', class: 'btn'
= link_to sprite_icon('remove'), admin_broadcast_message_path(message), method: :delete, remote: true, title: 'Remove', class: 'js-remove-tr btn btn-danger'
= paginate @broadcast_messages, theme: 'gitlab'