<commit_before>.category.featured
  -# really not happy with the way I implemented this, but wanted to have something in this week
  -# There's a lot of refactoring that could happen here ...
  :javascript
    function activateTab( tab, tabname )
    {
      $('.tab_content, .tabs li').removeClass('active'); 
      $('#' + tabname + '.tab_content').addClass('active'); 
      $(tab).addClass('active'); 
      $('.seemore a').text('See more ' + tabname + ' videos');
      //if ( tabname == 'recent' ) { $('.seemore a').href( #{recent_videos_path} ); }
      //if ( tabname == 'popular' ) { $('.seemore a').href( #{popular_videos_path} ); }
      //if ( tabname == 'random' ) { $('.seemore a').href( #random_videos_path ); }
      //if ( tabname == 'random' ) { $('.seemore a').href( '' ); }
      return false;
    }
  %ul.tabs
    %li.title.block.tab.active{ :onclick => "activateTab( $(this), 'recent' ); "  }
      %a{ :href => "#" } Recent
    %li.title.block.tab{ :onclick => "activateTab( $(this), 'popular' ); "  }
      %a{ :href => "#" } Popular
    %li.title.block.tab{ :onclick => "activateTab( $(this), 'random' ); "  }
      %a{ :href => "#" } Random
    %li.title.block.tab.seemore= link_to "See more recent videos &raquo;", recent_videos_path
  .tab_contents
    #recent.tab_content.active
      =render :partial => "recent"
    #popular.tab_content
      =render :partial => "popular"
    #random.tab_content
      =render :partial => "random"
.clear
= render :partial => "browse"
- logger.info recent_videos_path.inspect
<commit_msg>Change the links when switching tabs in the videos view<commit_after>.category.featured
  -# There's a lot of refactoring that could happen here ...
  :javascript
    function activateTab( tab, tabname )
    {
      $('.tab_content, .tabs li').removeClass('active'); 
      $('#' + tabname + '.tab_content').addClass('active'); 
      $(tab).addClass('active'); 
      $('.seemore a').text('See more ' + tabname + ' videos');
      if ( tabname == 'recent' ) { $('.seemore a').attr('href', "#{recent_videos_path}" ); }
      if ( tabname == 'popular' ) { $('.seemore a').attr('href', "#{popular_videos_path}" ); }
      //if ( tabname == 'random' ) { $('.seemore a').href( "#random_videos_path}" ); }
      //if ( tabname == 'random' ) { $('.seemore a').href( '' ); }
      return false;
    }
  %ul.tabs
    %li.title.block.tab.active{ :onclick => "activateTab( $(this), 'recent' ); "  }
      %a{ :href => "#" } Recent
    %li.title.block.tab{ :onclick => "activateTab( $(this), 'popular' ); "  }
      %a{ :href => "#" } Popular
    %li.title.block.tab{ :onclick => "activateTab( $(this), 'random' ); "  }
      %a{ :href => "#" } Random
    %li.title.block.tab.seemore= link_to "See more recent videos &raquo;", recent_videos_path
  .tab_contents
    #recent.tab_content.active
      =render :partial => "recent"
    #popular.tab_content
      =render :partial => "popular"
    #random.tab_content
      =render :partial => "random"
.clear
= render :partial => "browse"
- logger.info recent_videos_path.inspect

{'fraction_non_alphanumeric': 0.19947848761408082, 'fraction_numerical': 0.0, 'mean_word_length': 3.0541611624834872, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '7128737', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1018, 'n_words': 232}