<commit_before>- model_class = Event
= page_header t('.title', default: model_class.model_name.human.pluralize)

%table.table.table-striped
  %thead
    %tr
      %th= model_class.human_attribute_name :name
      %th= model_class.human_attribute_name :identifier
      %th= model_class.human_attribute_name :opens_at
      %th= model_class.human_attribute_name :closes_at
      %th= model_class.human_attribute_name :subscriptions
      %th
      %th
  %tbody
    - @events.each do |event|
      %tr
        %td= link_to event.name, event
        %td= link_to event.identifier, present_event_main_page_path(event.identifier)
        %td= event.opens_at
        %td= event.closes_at
        - if can? :index, Subscription
          %td= link_to event.subscriptions.size, event_subscriptions_path(event)
        - else
          %td= event.subscriptions.size
        %td.actions
          = minilink_to_edit event, edit_event_path(event)
          = minilink_to_destroy event, value: event.name
          = link_to icon_tag('icon-file icon-white'), event_pages_path(event),
              class: 'btn btn-mini btn-primary',
              title: Page.model_name.human.pluralize if can? :index, Page

%br

= link_to_add Event, new_event_path
<commit_msg>Localização de data e hora de abertura e fechamento das inscrições do evento na listagem.<commit_after>- model_class = Event
= page_header t('.title', default: model_class.model_name.human.pluralize)

%table.table.table-striped
  %thead
    %tr
      %th= model_class.human_attribute_name :name
      %th= model_class.human_attribute_name :identifier
      %th= model_class.human_attribute_name :opens_at
      %th= model_class.human_attribute_name :closes_at
      %th= model_class.human_attribute_name :subscriptions
      %th
      %th
  %tbody
    - @events.each do |event|
      %tr
        %td= link_to event.name, event
        %td= link_to event.identifier, present_event_main_page_path(event.identifier)
        %td= l event.opens_at
        %td= l event.closes_at
        - if can? :index, Subscription
          %td= link_to event.subscriptions.size, event_subscriptions_path(event)
        - else
          %td= event.subscriptions.size
        %td.actions
          = minilink_to_edit event, edit_event_path(event)
          = minilink_to_destroy event, value: event.name
          = link_to icon_tag('icon-file icon-white'), event_pages_path(event),
              class: 'btn btn-mini btn-primary',
              title: Page.model_name.human.pluralize if can? :index, Page

%br

= link_to_add Event, new_event_path

{'fraction_non_alphanumeric': 0.09425911559348332, 'fraction_numerical': 0.0, 'mean_word_length': 2.895770392749245, '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': '3723310', 'n_tokens_mistral': 840, 'n_tokens_neox': 833, 'n_words': 178}