<commit_before>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.


- content_for :page_title do
  - if params[:name]
    = "##{params[:name]}"
  - else
    = t('.whatup', :pod => @pod_url)

- content_for :head do
  = include_javascripts :home
  :javascript
    $(document).ready(function(){
      // Change the text and color of the "follow this tag" button on hover.
      $(".button.tag_following").hover(function(){
        $this = $(this);
        $this.removeClass("in_aspects");
        $this.val("#{t('.stop_following', :tag => params[:name])}");
      },
      function(){
        $this = $(this);
        $this.addClass("in_aspects");
        $this.val("#{t('.following', :tag => params[:name])}");
      });
    });
    $(".people_stream .pagination a").live("click", function() {
      $.getScript(this.href);
      return false;
    });


- content_for :body_class do
  = "tags_show"

.span-6.tags_people
  %h3
    = t('people', :count => @people_count)

  .side_stream.stream
    = render :partial => 'people/index', :locals => {:people => @people}

.span-15.last
  .stream_container
    #author_info
      - if user_signed_in? && current_user.person != @person
        .right
          - unless tag_followed?
            = button_to t('.follow', :tag => params[:name]), tag_tag_followings_path(:name => params[:name]), :method => :post,   :class => 'button take_action'
          - else
            = button_to t('.following', :tag => params[:name]), tag_tag_followings_path(:name => params[:name]), :method => :delete,   :class => 'button red_on_hover tag_following in_aspects take_action'
      %h2
        = "##{params[:name]}"

    %hr

    #main_stream.stream
      - if @posts.length > 0
        = render 'shared/stream', :posts => @posts
        #pagination
          =link_to(t('more'), next_page_path, :class => 'paginate')
      - else
        = t('.nobody_talking', :tag => "##{params[:name]}")
<commit_msg>Added list of followed tags also to tags view, as suggested in issue #1632<commit_after>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.


- content_for :page_title do
  - if params[:name]
    = "##{params[:name]}"
  - else
    = t('.whatup', :pod => @pod_url)

- content_for :head do
  = include_javascripts :home
  :javascript
    $(document).ready(function(){
      // Change the text and color of the "follow this tag" button on hover.
      $(".button.tag_following").hover(function(){
        $this = $(this);
        $this.removeClass("in_aspects");
        $this.val("#{t('.stop_following', :tag => params[:name])}");
      },
      function(){
        $this = $(this);
        $this.addClass("in_aspects");
        $this.val("#{t('.following', :tag => params[:name])}");
      });
    });
    $(".people_stream .pagination a").live("click", function() {
      $.getScript(this.href);
      return false;
    });


- content_for :body_class do
  = "tags_show"

.span-6.tags_people
  %h3
    = t('people', :count => @people_count)

  .side_stream.stream
    = render :partial => 'people/index', :locals => {:people => @people}

  %br

  .section
    = render "tags/followed_tags_listings"

.span-15.last
  .stream_container
    #author_info
      - if user_signed_in? && current_user.person != @person
        .right
          - unless tag_followed?
            = button_to t('.follow', :tag => params[:name]), tag_tag_followings_path(:name => params[:name]), :method => :post,   :class => 'button take_action'
          - else
            = button_to t('.following', :tag => params[:name]), tag_tag_followings_path(:name => params[:name]), :method => :delete,   :class => 'button red_on_hover tag_following in_aspects take_action'
      %h2
        = "##{params[:name]}"

    %hr

    #main_stream.stream
      - if @posts.length > 0
        = render 'shared/stream', :posts => @posts
        #pagination
          =link_to(t('more'), next_page_path, :class => 'paginate')
      - else
        = t('.nobody_talking', :tag => "##{params[:name]}")

{'fraction_non_alphanumeric': 0.17424422756486552, 'fraction_numerical': 0.006189002618424185, 'mean_word_length': 2.768609865470852, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 41, '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': '3273209', 'n_tokens_mistral': 1392, 'n_tokens_neox': 1351, 'n_words': 311}