<commit_before>- @title = @forum.name

.content-main-header
  %h1
    = link_to 'Forums', forums_path
    &middot;
    = @title
  - if current_user
    = link_to 'Start a New Topic', new_forum_topic_path(@forum), class: 'btn btn-xs btn-primary'
  - else
    = link_to 'Sign in to Start a New Topic', new_forum_topic_path(@forum), class: 'btn btn-xs btn-primary'
  - if current_user and current_user.has_role? :owner
    = link_to 'Edit Forum', edit_forum_path(@forum), class: 'btn btn-xs btn-primary'

= render partial: 'forums/show', locals: { forum: @forum, topic_limit: nil }


- if false
  %p
    %strong
      Name:
      = @forum.name

  %p
    %strong
      Description:
      = @forum.description

  %p
    %strong
      Views count:
      = @forum.views_count

  %p
    %strong
      Slug:
      = @forum.slug
<commit_msg>Added search filter to forum show page<commit_after>- @title = @forum.name

.content-main-header
  %h1
    = link_to 'Forums', forums_path
    &middot;
    = @title
  - if current_user
    = link_to 'Start a New Topic', new_forum_topic_path(@forum), class: 'btn btn-xs btn-primary'
  - else
    = link_to 'Sign in to Start a New Topic', new_forum_topic_path(@forum), class: 'btn btn-xs btn-primary'
  - if current_user and current_user.has_role? :owner
    = link_to 'Edit Forum', edit_forum_path(@forum), class: 'btn btn-xs btn-primary'

= form_tag @forum, method: :get, class: 'form-inline', style: 'margin-bottom:20px' do
  .input-group
    = text_field_tag 's', params[:s], class: 'form-control'
    %span.input-group-btn
      = submit_tag 'Search', class: 'btn btn-primary', name: nil
      = link_to 'Reset', @forum, class: 'btn btn-default'
      = link_to 'Pending Review', forum_path(@forum, status: (params[:status] == 'pending_review' ? nil : 'pending_review')), class: "btn btn-default #{'active' if params[:status] == 'pending_review'}" if current_user and current_user.has_role? :moderator

= render partial: 'forums/show', locals: { forum: @forum, topic_limit: nil }


- if false
  %p
    %strong
      Name:
      = @forum.name

  %p
    %strong
      Description:
      = @forum.description

  %p
    %strong
      Views count:
      = @forum.views_count

  %p
    %strong
      Slug:
      = @forum.slug

{'fraction_non_alphanumeric': 0.13398402839396628, 'fraction_numerical': 0.001774622892635315, 'mean_word_length': 3.0484739676840213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7197137', 'n_tokens_mistral': 825, 'n_tokens_neox': 785, 'n_words': 208}