<commit_before>%h1
  %b.uppercase
    = @racer.last_name
  = @racer.first_name

%h4
  %b Klub:
  - if @racer.club.present?
    = link_to club_path(@racer.club) do
      = @racer.club.try(:name)
  - else
    Nema

- if user_signed_in?
  %h4
    %b God<NAME>ja:
    = @racer.year_of_birth
    %br
    %b Mjesto stanovanja:
    = @racer.town
    %br
    %b Velicina majice:
    = @racer.shirt_size || '-'

- if user_signed_in? && (current_user.admin || current_user.racer == @racer)
  %p
    %b Kontakt:
    %ul
      %li
        = @racer.email
      %li
        %a{href: "tel:#{@racer.phone_number}"}
          = @racer.phone_number
      %li
        Adresa:
        = @racer.address
        = @racer.zip_code
        = @racer.town

%h4
  Utrke

%table.wide_table.mdl-data-table.mdl-js-data-table.mdl-shadow--2dp
  %thead
    %tr
      %th Utrka
      %th Vrijeme
      %th Mjesto
  %tbody
    - @racer.race_results.sort{|a, b| b.id <=> a.id}.each do |race_result|
      %tr
        %td= race_result.race.name
        %td= race_result.finish_time
        %td= race_result.try(:position)


%br
= link_to 'Natrag', racers_path, class: 'mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect'

- if user_signed_in? && current_user.admin
  = link_to 'Izmijeni podatke', edit_racer_path(@racer), class: 'mdl-button mdl-js-button mdl-button--raised mdl-button--accent mdl-js-ripple-effect'
<commit_msg>Hide shirt size on racer show page for non-admin users<commit_after>%h1
  %b.uppercase
    = @racer.last_name
  = @racer.first_name

%h4
  %b Klub:
  - if @racer.club.present?
    = link_to club_path(@racer.club) do
      = @racer.club.try(:name)
  - else
    Nema

- if user_signed_in?
  %h4
    %b <NAME>:
    = @racer.year_of_birth
    %br
    %b Mjesto stanovanja:
    = @racer.town

    - if current_user.admin?
      %br
      %b <NAME>:
      = @racer.shirt_size || '-'

- if user_signed_in? && (current_user.admin || current_user.racer == @racer)
  %p
    %b Kontakt:
    %ul
      %li
        = @racer.email
      %li
        %a{href: "tel:#{@racer.phone_number}"}
          = @racer.phone_number
      %li
        Adresa:
        = @racer.address
        = @racer.zip_code
        = @racer.town

%h4
  Utrke

%table.wide_table.mdl-data-table.mdl-js-data-table.mdl-shadow--2dp
  %thead
    %tr
      %th Utrka
      %th Vrijeme
      %th Mjesto
  %tbody
    - @racer.race_results.sort{|a, b| b.id <=> a.id}.each do |race_result|
      %tr
        %td= race_result.race.name
        %td= race_result.finish_time
        %td= race_result.try(:position)


%br
= link_to 'Natrag', racers_path, class: 'mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect'

- if user_signed_in? && current_user.admin
  = link_to 'Izmijeni podatke', edit_racer_path(@racer), class: 'mdl-button mdl-js-button mdl-button--raised mdl-button--accent mdl-js-ripple-effect'

{'fraction_non_alphanumeric': 0.1449673651666094, 'fraction_numerical': 0.0034352456200618343, 'mean_word_length': 2.3781902552204177, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '1661658', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1202, 'n_words': 208}