debian-mirror-gitlab/app/views/admin/broadcast_messages/index.html.haml

42 lines
1.1 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- breadcrumb_title "Messages"
2015-09-11 14:41:01 +05:30
- page_title "Broadcast Messages"
2014-09-02 18:07:02 +05:30
%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.
2014-09-02 18:07:02 +05:30
= render 'form'
2014-09-02 18:07:02 +05:30
%br.clearfix
2014-09-02 18:07:02 +05:30
2017-08-17 22:00:37 +05:30
- if @broadcast_messages.any?
%table.table
%thead
%tr
%th Status
%th Preview
%th Starts
%th Ends
2020-01-01 13:55:28 +05:30
%th Target Path
%th  
%tbody
- @broadcast_messages.each do |message|
%tr
%td
= broadcast_message_status(message)
%td
= broadcast_message(message)
%td
= message.starts_at
%td
= message.ends_at
2020-01-01 13:55:28 +05:30
%td
= message.target_path
%td
2019-09-04 21:01:54 +05:30
= 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'
2014-09-02 18:07:02 +05:30
2016-04-02 18:10:28 +05:30
= paginate @broadcast_messages, theme: 'gitlab'