<commit_before>- if policy(Hour).supervisor?
  h1= @volunteer.contact.full_name
h1 Stunden Rapporte
.row
  .col-xs-12
    h4.pull-right
      = t('total_hours')
      =< @volunteer.hours.total_hours
.table-responsive
      table.table
        thead
          tr
            th.hidden-print Aktionen
            - if policy(Hour).supervisor?
              th= t_model(Volunteer)
            th= t_attr(:hourable)
            th= t_attr(:meeting_date)
            th= t_attr(:duration)
            th= t_attr(:activity)
            th= t_attr(:comments)
        tbody
          - @volunteer.hours.each do |record|
            tr
              td.index-action-cell.hidden-print
                = button_link navigation_glyph(:show), volunteer_hour_path(@volunteer, record),
                    title: 'Anzeigen'
                = button_link navigation_glyph(:edit), edit_volunteer_hour_path(@volunteer, record),
                    title: 'Bearbeiten'
                = button_link navigation_glyph(:delete), volunteer_hour_path(@volunteer, record),
                    confirm_deleting(record, 'btn btn-default').merge(title: 'Löschen')
              - if current_user.superadmin?
                td= link_to @volunteer.contact.full_name, edit_volunteer_path(@volunteer)
              td
                - if record.assignment?
                  - if policy(Hour).supervisor?
                    = link_to record.hourable.client.contact.full_name, client_path(record.hourable.client)
                  - else
                    = record.hourable.client.contact.full_name
                - else
                  = link_to record.hourable.to_label, group_offer_path(record.hourable)
              td= l(record.meeting_date)
              td= record.hours
              td= record.activity
              td= record.comments
.row
  .col-xs-12
= form_navigation_btn :new
.row
  .col-xs-12
    = button_link navigation_glyph(:back), @volunteer<commit_msg>add new hours button also on top of hours index<commit_after>- if policy(Hour).supervisor?
  h1= @volunteer.contact.full_name
h1 Stunden Rapporte
.row
  .col-xs-12
    h4.pull-right
      = t('total_hours')
      =< @volunteer.hours.total_hours
= form_navigation_btn :new
.table-responsive
      table.table
        thead
          tr
            th.hidden-print Aktionen
            - if policy(Hour).supervisor?
              th= t_model(Volunteer)
            th= t_attr(:hourable)
            th= t_attr(:meeting_date)
            th= t_attr(:duration)
            th= t_attr(:activity)
            th= t_attr(:comments)
        tbody
          - @volunteer.hours.each do |record|
            tr
              td.index-action-cell.hidden-print
                = button_link navigation_glyph(:show), volunteer_hour_path(@volunteer, record),
                    title: 'Anzeigen'
                = button_link navigation_glyph(:edit), edit_volunteer_hour_path(@volunteer, record),
                    title: 'Bearbeiten'
                = button_link navigation_glyph(:delete), volunteer_hour_path(@volunteer, record),
                    confirm_deleting(record, 'btn btn-default').merge(title: 'Löschen')
              - if current_user.superadmin?
                td= link_to @volunteer.contact.full_name, edit_volunteer_path(@volunteer)
              td
                - if record.assignment?
                  - if policy(Hour).supervisor?
                    = link_to record.hourable.client.contact.full_name, client_path(record.hourable.client)
                  - else
                    = record.hourable.client.contact.full_name
                - else
                  = link_to record.hourable.to_label, group_offer_path(record.hourable)
              td= l(record.meeting_date)
              td= record.hours
              td= record.activity
              td= record.comments

= form_navigation_btn :new
.row
  .col-xs-12
    = button_link navigation_glyph(:back), @volunteer
{'fraction_non_alphanumeric': 0.09533468559837728, 'fraction_numerical': 0.004056795131845842, 'mean_word_length': 1.7899575671852899, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3493754', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1138, 'n_words': 200}