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

44 lines
1.4 KiB
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- breadcrumb_title _("Messages")
- page_title _("Broadcast Messages")
2014-09-02 18:07:02 +05:30
%h3.page-title
2021-04-29 21:17:54 +05:30
= _('Broadcast Messages')
2014-09-02 18:07:02 +05:30
%p.light
2021-04-29 21:17:54 +05:30
= _('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?
2020-06-23 00:09:42 +05:30
%table.table.table-responsive
%thead
%tr
2021-04-29 21:17:54 +05:30
%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
2020-03-13 15:44:24 +05:30
= broadcast_message(message, preview: true)
%td
= message.starts_at
%td
= message.ends_at
2020-01-01 13:55:28 +05:30
%td
= message.target_path
2020-03-13 15:44:24 +05:30
%td
= message.broadcast_type.capitalize
2020-10-24 23:57:45 +05:30
%td.gl-white-space-nowrap.gl-display-flex
2021-04-29 21:17:54 +05:30
= 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'
2014-09-02 18:07:02 +05:30
2016-04-02 18:10:28 +05:30
= paginate @broadcast_messages, theme: 'gitlab'