<commit_before>= render :partial => 'settings/subheader', :locals => {:current => :favorite_tags}

.section
  .section-title
    %h2= t :favorite_tags
  .section-content
    = form_tag nil, :action => settings_favorite_tags_url do
      .field
        = text_field_tag :tags, nil, :class => 'text long-text'
        = submit_tag t(:add), :class => 'button'
        .meta= t 'tips.favorite_tags'

- if !@favorite_tags.blank?
  .section
    .section-content
      %table.tags-table
        - @favorite_tags.in_groups_of(4) do |group_tags|
          %tr
            - group_tags.each do |tag|
              %td
                - if tag
                  = link_to tag, tagged_topics_url(:tag => tag), :class => 'button'
                  %span.actions= link_to 'X', settings_favorite_tags_url(:tags => tag), :method => :delete, :title => "remove tag '#{tag}'"<commit_msg>fix settings fav tags form action error.<commit_after>= render :partial => 'settings/subheader', :locals => {:current => :favorite_tags}

.section
  .section-title
    %h2= t :favorite_tags
  .section-content
    = form_tag :action => :create do
      .field
        = text_field_tag :tags, nil, :class => 'text long-text'
        = submit_tag t(:add), :class => 'button'
        .meta= t 'tips.favorite_tags'

- if !@favorite_tags.blank?
  .section
    .section-content
      %table.tags-table
        - @favorite_tags.in_groups_of(4) do |group_tags|
          %tr
            - group_tags.each do |tag|
              %td
                - if tag
                  = link_to tag, tagged_topics_url(:tag => tag), :class => 'button'
                  %span.actions= link_to 'X', settings_favorite_tags_url(:tags => tag), :method => :delete, :title => "remove tag '#{tag}'"
{'fraction_non_alphanumeric': 0.14318573893041978, 'fraction_numerical': 0.0023001725129384704, 'mean_word_length': 2.3397312859884836, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '3619173', 'n_tokens_mistral': 575, 'n_tokens_neox': 564, 'n_words': 132}