<commit_before>- @page_title = @topic.title

.main
  .container
    .row
      .col-md-8.col-md-push-2
        .panel
          .panel-heading
            h3.panel-title = @topic.title
          .panel-body
            = form_for [:admin, @topic], html: { class: 'topic-form' } do |f|
              = render 'share/flash_messages'
              = render 'share/form_error_messages', form: f
              .form-group
                = f.label :user
                p
                  a href=admin_user_path(@topic.user)
                    = @topic.user.name
              .row
                .col-md-9
                  .form-group
                    = f.text_field :title, class: 'form-control', tabIndex: 1
                .col-md-3
                  .form-group
                    = f.collection_select :category_id, Category.order(topics_count: :desc), :id, :name, { include_blank: t('.no_category') }, class: 'form-control', tabIndex: 2
              .form-group
                = markdown_area f, :body, tabIndex: 3
              .form-group
                = f.label :created_at
                = f.text_field :created_at, class: 'form-control', disabled: true
              .form-group
                = f.label :comments_count
                = f.text_field :comments_count, class: 'form-control', disabled: true
              .clearfix
                = f.submit t('.save_changes'), class: 'btn btn-success', tabIndex: 4
                - if @topic.hot == Topic::TOP_HOT_VALUE
                  =link_to admin_topic_cancel_top_path(@topic), method: :patch
                    button.btn.btn-primary
                      =t('.cancel_top_it')
                - else
                  =link_to admin_topic_top_path(@topic), method: :patch
                    button.btn.btn-primary
                      =t('.top_it')

                     
                    
                .pull-right<commit_msg>a little fix<commit_after>- @page_title = @topic.title

.main
  .container
    .row
      .col-md-8.col-md-push-2
        .panel
          .panel-heading
            h3.panel-title = @topic.title
          .panel-body
            = form_for [:admin, @topic], html: { class: 'topic-form' } do |f|
              = render 'share/flash_messages'
              = render 'share/form_error_messages', form: f
              .form-group
                = f.label :user
                p
                  a href=admin_user_path(@topic.user)
                    = @topic.user.name
              .row
                .col-md-9
                  .form-group
                    = f.text_field :title, class: 'form-control', tabIndex: 1
                .col-md-3
                  .form-group
                    = f.collection_select :category_id, Category.order(topics_count: :desc), :id, :name, { include_blank: t('.no_category') }, class: 'form-control', tabIndex: 2
              .form-group
                = markdown_area f, :body, tabIndex: 3
              .form-group
                = f.label :created_at
                = f.text_field :created_at, class: 'form-control', disabled: true
              .form-group
                = f.label :comments_count
                = f.text_field :comments_count, class: 'form-control', disabled: true
              .clearfix
                = f.submit t('.save_changes'), class: 'btn btn-success', tabIndex: 4
                - if @topic.hot == Topic::TOP_HOT_VALUE
                  =link_to admin_topic_cancel_top_path(@topic), method: :patch
                    button.btn.btn-primary
                      =t('.cancel_top_it')
                - else
                  =link_to admin_topic_top_path(@topic), method: :patch
                    button.btn.btn-primary
                      =t('.top_it')
                .pull-right
{'fraction_non_alphanumeric': 0.11208035950303992, 'fraction_numerical': 0.004758128469468675, 'mean_word_length': 1.2430349733254298, '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': '7042454', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1036, 'n_words': 211}