<commit_before><%= stylesheet_link_tag "settings" -%>

<h1>Site branding</h1>

<div class="show_basic">
<%= form_tag({:action=>"update_rebrand"}, :multipart => true) do -%>
   <ul class="settings">
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"A name for you #{t('project')}, this is the text that is used in sentences. Example Sysmo_DB, Virtual Liver",
            :name=>"#{t('project')} name",
            :field=>text_field_tag(:project_name, Seek::Config.project_name)
         } -%>
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"The title for you #{t('project')}, this is the text that is used in titles. In the majority of cases it will be the same as #{t('project')} name, unless you want to prefix it with 'The'.",
            :name=>"#{t('project')} title",
            :field=>text_field_tag(:project_title, Seek::Config.project_title)
         } -%>
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"Whether your #{t('project')} is a group, consortium, etc.",
            :name=>"#{t('project')} type",
            :field=>text_field_tag(:project_type, Seek::Config.project_type)
        } -%>
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"A URL that is used as a link to your #{t('project')} website.",
            :name=>"#{t('project')} link",
            :field=>text_field_tag(:project_link, Seek::Config.project_link)
         } -%>

        <%= render :partial=>'setting_li',:locals=>{
            :description=>"The name of your application, as used in sentences, if you are extending SEEK and wish to give it a different name.",
            :name=>"Application name",
            :field=>text_field_tag(:application_name, Seek::Config.application_name)
         } -%>
     
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"The name of your application, as used in titles, if you are extending SEEK and wish to give it a different name.",
            :name=>"Application title",
            :field=>text_field_tag(:application_title, Seek::Config.application_title)
         } -%>

        <%= render :partial=>'setting_li',:locals=>{
            :description=>"The name of the data management #{t('project')}, if different from the #{t('project')}, as used in titles. For example, in SysMO the #{t('project')} is SysMO, but the DM #{t('project')} name is SysMO-DB",
            :name=>"Data management #{t('project')} name",
            :field=>text_field_tag(:dm_project_name, Seek::Config.dm_project_name)
         } -%>
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"The name of the data management #{t('project')}, as used in titles.",
            :name=>"Data management #{t('project')} title",
            :field=>text_field_tag(:dm_project_title, Seek::Config.dm_project_title)
         } -%>
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"A URL that is used in links to the data management #{t('project')}",
            :name=>"Data management #{t('project')} link",
            :field=>text_field_tag(:dm_project_link, Seek::Config.dm_project_link)
         } -%>


        <%= render :partial=>'setting_li',:locals=>{
            :description=>"Whether a header image appears on the right in the header.",
            :name=>"Header image enabled",
            :field=>check_box_tag(:header_image_enabled, 1, Seek::Config.header_image_enabled,:onchange=>toggle_appear_javascript('header_image_details'))
         } -%>

        <ul class="settings" id="header_image_details" class="additional_settings" style="<%= show_or_hide_block Seek::Config.header_image_enabled -%>">
          <%= render :partial => 'setting_li', :locals => {
                  :description => "The file for the header image.",
                  :name => "Current header image file",
                  :field => text_field_tag(:header_image, Seek::Config.header_image)
          } -%>
          <%= render :partial => 'setting_li', :locals => {
                  :description => "The file for the header image.",
                  :name => "Upload a header image file",
                  :field => file_field_tag(:header_image_file)
          } -%>
          <%= render :partial => 'setting_li', :locals => {
                  :description => "A URL that is used as the link in the header image.",
                  :name => "Header image link",
                  :field => text_field_tag(:header_image_link, Seek::Config.header_image_link)
          } -%>
          <%= render :partial => 'setting_li', :locals => {
                  :description => "A title for the header image.",
            :name=>"Header image title",
            :field=>text_field_tag(:header_image_title, Seek::Config.header_image_title)
         } -%>
        </ul>

        <%= render :partial=>'setting_li',:locals=>{<commit_msg>dont allow to change header_image file text, to avoid throwing error when the file is not correctly specified<commit_after><%= stylesheet_link_tag "settings" -%>

<h1>Site branding</h1>

<div class="show_basic">
<%= form_tag({:action=>"update_rebrand"}, :multipart => true) do -%>
   <ul class="settings">
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"A name for you #{t('project')}, this is the text that is used in sentences. Example Sysmo_DB, Virtual Liver",
            :name=>"#{t('project')} name",
            :field=>text_field_tag(:project_name, Seek::Config.project_name)
         } -%>
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"The title for you #{t('project')}, this is the text that is used in titles. In the majority of cases it will be the same as #{t('project')} name, unless you want to prefix it with 'The'.",
            :name=>"#{t('project')} title",
            :field=>text_field_tag(:project_title, Seek::Config.project_title)
         } -%>
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"Whether your #{t('project')} is a group, consortium, etc.",
            :name=>"#{t('project')} type",
            :field=>text_field_tag(:project_type, Seek::Config.project_type)
        } -%>
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"A URL that is used as a link to your #{t('project')} website.",
            :name=>"#{t('project')} link",
            :field=>text_field_tag(:project_link, Seek::Config.project_link)
         } -%>

        <%= render :partial=>'setting_li',:locals=>{
            :description=>"The name of your application, as used in sentences, if you are extending SEEK and wish to give it a different name.",
            :name=>"Application name",
            :field=>text_field_tag(:application_name, Seek::Config.application_name)
         } -%>
     
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"The name of your application, as used in titles, if you are extending SEEK and wish to give it a different name.",
            :name=>"Application title",
            :field=>text_field_tag(:application_title, Seek::Config.application_title)
         } -%>

        <%= render :partial=>'setting_li',:locals=>{
            :description=>"The name of the data management #{t('project')}, if different from the #{t('project')}, as used in titles. For example, in SysMO the #{t('project')} is SysMO, but the DM #{t('project')} name is SysMO-DB",
            :name=>"Data management #{t('project')} name",
            :field=>text_field_tag(:dm_project_name, Seek::Config.dm_project_name)
         } -%>
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"The name of the data management #{t('project')}, as used in titles.",
            :name=>"Data management #{t('project')} title",
            :field=>text_field_tag(:dm_project_title, Seek::Config.dm_project_title)
         } -%>
        <%= render :partial=>'setting_li',:locals=>{
            :description=>"A URL that is used in links to the data management #{t('project')}",
            :name=>"Data management #{t('project')} link",
            :field=>text_field_tag(:dm_project_link, Seek::Config.dm_project_link)
         } -%>


        <%= render :partial=>'setting_li',:locals=>{
            :description=>"Whether a header image appears on the right in the header.",
            :name=>"Header image enabled",
            :field=>check_box_tag(:header_image_enabled, 1, Seek::Config.header_image_enabled,:onchange=>toggle_appear_javascript('header_image_details'))
         } -%>

        <ul class="settings" id="header_image_details" class="additional_settings" style="<%= show_or_hide_block Seek::Config.header_image_enabled -%>">
          <%= render :partial => 'setting_li', :locals => {
                  :description => "The file for the header image.",
                  :name => "Current header image file",
                  :field => text_field_tag(:header_image, Seek::Config.header_image, :disabled => true)
          } -%>
          <%= render :partial => 'setting_li', :locals => {
                  :description => "The file for the header image.",
                  :name => "Upload a header image file",
                  :field => file_field_tag(:header_image_file)
          } -%>
          <%= render :partial => 'setting_li', :locals => {
                  :description => "A URL that is used as the link in the header image.",
                  :name => "Header image link",
                  :field => text_field_tag(:header_image_link, Seek::Config.header_image_link)
          } -%>
          <%= render :partial => 'setting_li', :locals => {
                  :description => "A title for the header image.",
            :name=>"Header image title",
            :field=>text_field_tag(:header_image_title, Seek::Config.header_image_title)
         } -%>
        </ul>

        <%= render :partial=>'setting_li',:locals=>{
{'fraction_non_alphanumeric': 0.15914774432329698, 'fraction_numerical': 0.0006001800540162049, 'mean_word_length': 2.754412316935787, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 200, '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': '4870991', 'n_tokens_mistral': 2963, 'n_tokens_neox': 2878, 'n_words': 720}