BigW Consortium Gitlab

index.html.haml 1.02 KB
Newer Older
1
- page_title "Broadcast Messages"
2

3 4 5
%h3.page-title
  Broadcast Messages
%p.light
6 7 8
  Broadcast messages are displayed for every user and can be used to notify
  users about scheduled maintenance, recent upgrades and more.

9
= render 'form'
10

11
%br.clearfix
12

13
- if @broadcast_messages.any?
14 15 16 17 18 19 20 21 22 23 24 25
  %table.table
    %thead
      %tr
        %th Status
        %th Preview
        %th Starts
        %th Ends
        %th  
    %tbody
      - @broadcast_messages.each do |message|
        %tr
          %td
26
            = broadcast_message_status(message)
27 28 29
          %td
            = broadcast_message(message)
          %td
30
            = message.starts_at
31
          %td
32
            = message.ends_at
33 34 35
          %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'
36

37
  = paginate @broadcast_messages, theme: 'gitlab'