<commit_before>- if @sb[:active_tab] == "settings_custom_logos"
  - url = url_for_only_path(:action => 'settings_form_field_changed', :id => "#{@sb[:active_tab].split('_')[1]}_#{@sb[:active_tab].split('_').last}")
  %h3= _("Custom Logo Image (Shown on top right of all screens)")
  - if File.exist?(@logo_file)
    = image_tag("/upload/custom_logo.png?#{rand(99_999_999)}")
  - else
    = render :partial => 'layouts/info_msg', :locals => {:message => _("No custom logo image has been uploaded yet.")}
  = form_tag({:action    => "upload_logo"},
             :class     => "form-horizontal",
             :multipart => true,
             :method    => :post) do
    .form-group
      .col-md-4
        = render :partial => "shared/file_chooser", :locals => {:object_name => "upload", :method => "logo"}
      .col-md-6
        = submit_tag(_("Upload"),
                    :id    => "upload",
                    :class => "btn btn-default")
        = _("* Requirements: File-type - PNG; Dimensions - 350x70.")
  - if File.exist?(@logo_file)
    %br/
    %form.form-horizontal
      .form-group
        %label.col-md-2.control-label
          = _("Use Custom Logo Image")
        .col-md-8
          = check_box_tag("server_uselogo", true, @edit[:new][:server][:custom_logo], :data => {:on_text => _('Yes'), :off_text => _('No')})
  %hr
  %h3= _("Custom Login & 'About' Screen Background Image")
  - if File.exist?(@login_logo_file)
    = image_tag("/upload/custom_login_logo.png?#{rand(99_999_999)}",
                :height => 400,
                :width  => 675)
    %br/
    = succeed "*" do
      %br/
    = _("Image shown at 25% of actual size")
    %br/
    %br/
  - else
    = render :partial => 'layouts/info_msg', :locals => {:message => _("No custom login image has been uploaded yet.")}
  = form_tag({:action    => "upload_login_logo"},
             :class     => "form-horizontal",
             :multipart => true,
             :method    => :post) do
    .form-group
      .col-md-4
        = render :partial => "shared/file_chooser", :locals => {:object_name => "login", :method => "logo"}
      .col-md-6
        = submit_tag(_("Upload"),
                    :class => "btn btn-default")
        = _("* Requirements: File-type - PNG; Dimensions - 1280x1000.")

  - if File.exist?(@login_logo_file)
    %br/
    %form.form-horizontal
      .form-group
        %label.col-md-2.control-label
          = _("Use Custom Login & 'About' Screen Background Image")
        .col-md-8
          = check_box_tag("server_useloginlogo", true, @edit[:new][:server][:custom_login_logo], :data => {:on_text => _('Yes'), :off_text => _('No')})
  %hr
  %h3=_("Custom Brand Image (Shown on top right of all screens and above login panel)")
  - if File.exist?(@login_brand_file)
    = image_tag("/upload/custom_brand.png?#{rand(99_999_999)}")
    %br/
    %br/
  - else
    = render :partial => 'layouts/info_msg', :locals => {:message => _("No custom login brand image has been uploaded yet.")}
  = form_tag({:action    => "upload_login_brand"},
             :class     => "form-horizontal",
             :multipart => true,
             :method    => :post) do
    .form-group
      .col-md-4
        = render :partial => "shared/file_chooser", :locals => {:object_name => "brand", :method => "logo"}
      .col-md-6<commit_msg>Fixed explanation of brand image positioning under Custom Logos<commit_after>- if @sb[:active_tab] == "settings_custom_logos"
  - url = url_for_only_path(:action => 'settings_form_field_changed', :id => "#{@sb[:active_tab].split('_')[1]}_#{@sb[:active_tab].split('_').last}")
  %h3= _("Custom Logo Image (Shown on top right of all screens)")
  - if File.exist?(@logo_file)
    = image_tag("/upload/custom_logo.png?#{rand(99_999_999)}")
  - else
    = render :partial => 'layouts/info_msg', :locals => {:message => _("No custom logo image has been uploaded yet.")}
  = form_tag({:action    => "upload_logo"},
             :class     => "form-horizontal",
             :multipart => true,
             :method    => :post) do
    .form-group
      .col-md-4
        = render :partial => "shared/file_chooser", :locals => {:object_name => "upload", :method => "logo"}
      .col-md-6
        = submit_tag(_("Upload"),
                    :id    => "upload",
                    :class => "btn btn-default")
        = _("* Requirements: File-type - PNG; Dimensions - 350x70.")
  - if File.exist?(@logo_file)
    %br/
    %form.form-horizontal
      .form-group
        %label.col-md-2.control-label
          = _("Use Custom Logo Image")
        .col-md-8
          = check_box_tag("server_uselogo", true, @edit[:new][:server][:custom_logo], :data => {:on_text => _('Yes'), :off_text => _('No')})
  %hr
  %h3= _("Custom Login & 'About' Screen Background Image")
  - if File.exist?(@login_logo_file)
    = image_tag("/upload/custom_login_logo.png?#{rand(99_999_999)}",
                :height => 400,
                :width  => 675)
    %br/
    = succeed "*" do
      %br/
    = _("Image shown at 25% of actual size")
    %br/
    %br/
  - else
    = render :partial => 'layouts/info_msg', :locals => {:message => _("No custom login image has been uploaded yet.")}
  = form_tag({:action    => "upload_login_logo"},
             :class     => "form-horizontal",
             :multipart => true,
             :method    => :post) do
    .form-group
      .col-md-4
        = render :partial => "shared/file_chooser", :locals => {:object_name => "login", :method => "logo"}
      .col-md-6
        = submit_tag(_("Upload"),
                    :class => "btn btn-default")
        = _("* Requirements: File-type - PNG; Dimensions - 1280x1000.")

  - if File.exist?(@login_logo_file)
    %br/
    %form.form-horizontal
      .form-group
        %label.col-md-2.control-label
          = _("Use Custom Login & 'About' Screen Background Image")
        .col-md-8
          = check_box_tag("server_useloginlogo", true, @edit[:new][:server][:custom_login_logo], :data => {:on_text => _('Yes'), :off_text => _('No')})
  %hr
  %h3=_("Custom Brand Image (Shown on top left of all screens and above login panel)")
  - if File.exist?(@login_brand_file)
    = image_tag("/upload/custom_brand.png?#{rand(99_999_999)}")
    %br/
    %br/
  - else
    = render :partial => 'layouts/info_msg', :locals => {:message => _("No custom login brand image has been uploaded yet.")}
  = form_tag({:action    => "upload_login_brand"},
             :class     => "form-horizontal",
             :multipart => true,
             :method    => :post) do
    .form-group
      .col-md-4
        = render :partial => "shared/file_chooser", :locals => {:object_name => "brand", :method => "logo"}
      .col-md-6
{'fraction_non_alphanumeric': 0.17967467542157886, 'fraction_numerical': 0.01760931204297866, 'mean_word_length': 2.449305198147195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 95, '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': '3395126', 'n_tokens_mistral': 2327, 'n_tokens_neox': 2227, 'n_words': 477}