<commit_before>- set_title @group.name, "", @group.parent
- cover_photo_url = image_url use_parent_if_blank(@group, :cover_photo).url(:desktop)
- logo_url = image_url use_parent_if_blank(@group, :logo).url(:medium)

.group-heading{style: "background-image: url(#{image_path 'cover-photo-gradient.png'}), url('#{cover_photo_url}')"}
  = render 'application/flash_messages', :flash => flash, :on_landing_page => false
  - if can? :edit, @group
    .upload-button.cover-photo-upload{title: t(:'tooltip.cover_photo_upload')}
      = form_for @group, html: { multipart: true, class: 'js-submit-on-change' } do |f|
        = file_field_tag "group[cover_photo]"
        .edit-icon
          %i.fa.fa-pencil


  .group-logo.hidden-xs{style: "background-image: url('#{logo_url}')"}
    - if can? :edit, @group
      .upload-button.logo-upload{title: t(:'tooltip.logo_upload')}
        = form_for @group, html: { multipart: true, class: 'js-submit-on-change' } do |f|
          = file_field_tag "group[logo]"
          .edit-icon
            %i.fa.fa-pencil

  .group-title
    %h1.home-title.shadow
      - if @group
        - if @group.is_subgroup?
          = link_to @group.parent.name, @group.parent
          = content_tag :span, "\u25B6", class: 'name-separator'
        = link_to @group.name, @group
        = render 'groups/privacy_dropdown', :group => @group
    - if @group.category.present?
      .group-category.shadow.hidden-sm.hidden-xs
        =link_to t(@group.category.translatable_name), category_explore_path(@group.category), title: t(:'tooltip.group_category')

.row
  .col-md-9
    .group-description
      - if (can? :edit, @group) && @group.description.present?
        = link_to edit_group_path @group do
          .edit-icon.edit-description{'data-title' => t(:'tooltip.edit_description')}
            %i.fa.fa-pencil
        .edit-icon-placeholder
      .logo-placeholder.hidden-xs
      ~ render_rich_text(@group.description)

    = render "application/filter_discussions_buttons" if can? :set_volume, @group
    = render 'discussions/discussion_list'<commit_msg>Remove ref to category explore page (#3234)<commit_after>- set_title @group.name, "", @group.parent
- cover_photo_url = image_url use_parent_if_blank(@group, :cover_photo).url(:desktop)
- logo_url = image_url use_parent_if_blank(@group, :logo).url(:medium)

.group-heading{style: "background-image: url(#{image_path 'cover-photo-gradient.png'}), url('#{cover_photo_url}')"}
  = render 'application/flash_messages', :flash => flash, :on_landing_page => false
  - if can? :edit, @group
    .upload-button.cover-photo-upload{title: t(:'tooltip.cover_photo_upload')}
      = form_for @group, html: { multipart: true, class: 'js-submit-on-change' } do |f|
        = file_field_tag "group[cover_photo]"
        .edit-icon
          %i.fa.fa-pencil


  .group-logo.hidden-xs{style: "background-image: url('#{logo_url}')"}
    - if can? :edit, @group
      .upload-button.logo-upload{title: t(:'tooltip.logo_upload')}
        = form_for @group, html: { multipart: true, class: 'js-submit-on-change' } do |f|
          = file_field_tag "group[logo]"
          .edit-icon
            %i.fa.fa-pencil

  .group-title
    %h1.home-title.shadow
      - if @group
        - if @group.is_subgroup?
          = link_to @group.parent.name, @group.parent
          = content_tag :span, "\u25B6", class: 'name-separator'
        = link_to @group.name, @group
        = render 'groups/privacy_dropdown', :group => @group

.row
  .col-md-9
    .group-description
      - if (can? :edit, @group) && @group.description.present?
        = link_to edit_group_path @group do
          .edit-icon.edit-description{'data-title' => t(:'tooltip.edit_description')}
            %i.fa.fa-pencil
        .edit-icon-placeholder
      .logo-placeholder.hidden-xs
      ~ render_rich_text(@group.description)

    = render "application/filter_discussions_buttons" if can? :set_volume, @group
    = render 'discussions/discussion_list'
{'fraction_non_alphanumeric': 0.15527638190954773, 'fraction_numerical': 0.0035175879396984926, 'mean_word_length': 3.138253638253638, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2466368', 'n_tokens_mistral': 1370, 'n_tokens_neox': 1337, 'n_words': 235}