<commit_before>- 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 &nbsp;
    %tbody
      - @broadcast_messages.each do |message|
        %tr
          %td
            = broadcast_message_status(message)
          %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<commit_msg>Remove (invalid) timestamp formatting<commit_after>- 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 &nbsp;
    %tbody
      - @broadcast_messages.each do |message|
        %tr
          %td
            = broadcast_message_status(message)
          %td
            = broadcast_message(message)
          %td
            = message.starts_at
          %td
            = message.ends_at
          %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
{'fraction_non_alphanumeric': 0.09814814814814815, 'fraction_numerical': 0.003703703703703704, 'mean_word_length': 2.366043613707165, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5707329', 'n_tokens_mistral': 669, 'n_tokens_neox': 653, 'n_words': 172}