<commit_before>.page-header
  .row
    .col-md-12
      %h1.light-header
        - if track.pilot
          %a{href: profile_path(track.pilot)}
            = image_tag track.pilot.userpic.url(:thumb), :class => 'img-rounded img-50 loading-bg'
            = track.pilot.name
        - else
          = track.name
        =header track
        %small.light-header
          %span= t('tracks.show.title_suit') + ':' 
          - if track.wingsuit
            - manufacturer = track.wingsuit.manufacturer
            %a{href: wingsuit_path(track.wingsuit)}
              = suit_presentation(track.wingsuit)
          - else
            %span= track.suit
          %span.no-right-space
            @
          - if track.place
            %a{href: place_path(track.place)}
              %span
              = place_presentation(track.place)
          - else
            %span= track.location

  .row
    .col-md-12
      %a.btn.btn-default{href: track_path(track),
                         class: ('active' if action_name == 'show')}
        %i.fa.fa-bar-chart-o
        = t('tracks.show.charts')
      - if track.video
        %a.btn.btn-default{href: replay_track_path(track),
                           class: ('active' if action_name == 'replay')}
          %i.fa.fa-play-circle-o
          = 'Replay'
      - if track.ge_enabled
        %a.btn.btn-default{href: google_earth_track_path(track),
                           class: ('active' if action_name == 'google_earth'),
                           :'data-no-turbolink' => 'true'}
          %i.fa.fa-compass
          = 'Google earth'
      %a.btn.btn-default{href: track_google_maps_path(track),
                         class: ('active' if action_name == 'google_maps')}
        %i.fa.fa-compass
        = 'Google maps'
      = link_to track_results_path(@track), remote: true, class: 'btn btn-default' do
        %i.fa.fa-th-list
        = t('tracks.show.results')
      .pull-right
        = link_to t('events.show.weather_data'), 
                 track_weather_data_path(@track), 
                 remote: true, 
                 class: 'btn btn-default'
        %span.settings-button
          - if action_name == 'show'
            = render 'tracks/view_settings_menu'
        - if user_signed_in? && (current_user == track.user || (can? :update, :tracks))
          %a.btn.btn-default{href: edit_track_path(track)}
            %i.fa.fa-pencil
<commit_msg>Added rel=nofollow to prevent search bots hitting remote links<commit_after>.page-header
  .row
    .col-md-12
      %h1.light-header
        - if track.pilot
          %a{href: profile_path(track.pilot)}
            = image_tag track.pilot.userpic.url(:thumb), :class => 'img-rounded img-50 loading-bg'
            = track.pilot.name
        - else
          = track.name
        =header track
        %small.light-header
          %span= t('tracks.show.title_suit') + ':' 
          - if track.wingsuit
            - manufacturer = track.wingsuit.manufacturer
            %a{href: wingsuit_path(track.wingsuit)}
              = suit_presentation(track.wingsuit)
          - else
            %span= track.suit
          %span.no-right-space
            @
          - if track.place
            %a{href: place_path(track.place)}
              %span
              = place_presentation(track.place)
          - else
            %span= track.location

  .row
    .col-md-12
      %a.btn.btn-default{href: track_path(track),
                         class: ('active' if action_name == 'show')}
        %i.fa.fa-bar-chart-o
        = t('tracks.show.charts')
      - if track.video
        %a.btn.btn-default{href: replay_track_path(track),
                           class: ('active' if action_name == 'replay')}
          %i.fa.fa-play-circle-o
          = 'Replay'
      - if track.ge_enabled
        %a.btn.btn-default{href: google_earth_track_path(track),
                           class: ('active' if action_name == 'google_earth'),
                           :'data-no-turbolink' => 'true'}
          %i.fa.fa-compass
          = 'Google earth'
      %a.btn.btn-default{href: track_google_maps_path(track),
                         class: ('active' if action_name == 'google_maps')}
        %i.fa.fa-compass
        = 'Google maps'
      = link_to track_results_path(@track), 
                remote: true, 
                class: 'btn btn-default',
                rel: 'nofollow' do
        %i.fa.fa-th-list
        = t('tracks.show.results')

      .pull-right
        = link_to t('events.show.weather_data'), 
                 track_weather_data_path(@track), 
                 remote: true, 
                 class: 'btn btn-default',
                 rel: 'nofollow'

        %span.settings-button
          - if action_name == 'show'
            = render 'tracks/view_settings_menu'
        - if user_signed_in? && (current_user == track.user || (can? :update, :tracks))
          %a.btn.btn-default{href: edit_track_path(track)}
            %i.fa.fa-pencil

{'fraction_non_alphanumeric': 0.12946607788036932, 'fraction_numerical': 0.0028101164191087916, 'mean_word_length': 1.5632716049382716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1988865', 'n_tokens_mistral': 1583, 'n_tokens_neox': 1515, 'n_words': 258}