<commit_before>template(name="setting")
  .setting-content
    .content-title
      span {{_ 'settings'}}
    .content-body
      .side-menu
        ul
          li.active
            a.js-setting-menu(data-id="registration-setting") {{_ 'registration'}}
          li
            a.js-setting-menu(data-id="email-setting") {{_ 'email'}}
      .main-body
        if loading.get
          +spinner
        else if generalSetting.get
          +general
        else if emailSetting.get
          +email

template(name="general")
  ul#registration-setting.setting-detail
    li
      a.flex.js-toggle-registration
        .materialCheckBox(class="{{#if currentSetting.disableRegistration}}is-checked{{/if}}")

        span {{_ 'disable-self-registration'}}
    li
      .invite-people(class="{{#if currentSetting.disableRegistration}}{{else}}hide{{/if}}")
        ul
          li
            .title {{_ 'invite-people'}}
            textarea#email-to-invite.form-control(rows='5', placeholder="{{_ 'email-addresses'}}")
          li
            .title {{_ 'to-boards'}}
            .bg-white
              each boards
                a.option.flex.js-toggle-board-choose(id= _id)
                  .materialCheckBox(data-id= _id)

                  span= title

          li
            button.js-email-invite.primary {{_ 'invite'}}

template(name='email')
  ul#email-setting.setting-detail
    li.smtp-form
      .title {{_ 'smtp-host'}}
      .description {{_ 'smtp-host-description'}}
      .form-group
        input.form-control#mail-server-host(type="text", placeholder="smtp.domain.com" value="{{currentSetting.mailServer.host}}")
    li.smtp-form
      .title {{_ 'smtp-port'}}
      .description {{_ 'smtp-port-description'}}
      .form-group
        input.form-control#mail-server-port(type="text", placeholder="25" value="{{currentSetting.mailServer.port}}")
    li.smtp-form
      .title {{_ 'smtp-username'}}
      .form-group
        input.form-control#mail-server-username(type="text", placeholder="{{_ 'username'}}" value="{{currentSetting.mailServer.username}}")
    li.smtp-form
      .title {{_ 'smtp-password'}}
      .form-group
        input.form-control#mail-server-password(type="text", placeholder="{{_ 'password'}}" value="{{currentSetting.mailServer.password}}")
    li.smtp-form
      .title {{_ 'smtp-tls'}}
      .form-group
        a.flex.js-toggle-tls
          .materialCheckBox#mail-server-tls(class="{{#if currentSetting.mailServer.enableTLS}}is-checked{{/if}}")

          span {{_ 'smtp-tls-description'}}

    li.smtp-form
      .title {{_ 'send-from'}}
      .form-group
        input.form-control#mail-server-from(type="email", placeholder="<EMAIL>" value="{{currentSetting.mailServer.from}}")

    li
      button.js-save.primary Save<commit_msg>Save to be translatable in Admin Panel SMTP settings.<commit_after>template(name="setting")
  .setting-content
    .content-title
      span {{_ 'settings'}}
    .content-body
      .side-menu
        ul
          li.active
            a.js-setting-menu(data-id="registration-setting") {{_ 'registration'}}
          li
            a.js-setting-menu(data-id="email-setting") {{_ 'email'}}
      .main-body
        if loading.get
          +spinner
        else if generalSetting.get
          +general
        else if emailSetting.get
          +email

template(name="general")
  ul#registration-setting.setting-detail
    li
      a.flex.js-toggle-registration
        .materialCheckBox(class="{{#if currentSetting.disableRegistration}}is-checked{{/if}}")

        span {{_ 'disable-self-registration'}}
    li
      .invite-people(class="{{#if currentSetting.disableRegistration}}{{else}}hide{{/if}}")
        ul
          li
            .title {{_ 'invite-people'}}
            textarea#email-to-invite.form-control(rows='5', placeholder="{{_ 'email-addresses'}}")
          li
            .title {{_ 'to-boards'}}
            .bg-white
              each boards
                a.option.flex.js-toggle-board-choose(id= _id)
                  .materialCheckBox(data-id= _id)

                  span= title

          li
            button.js-email-invite.primary {{_ 'invite'}}

template(name='email')
  ul#email-setting.setting-detail
    li.smtp-form
      .title {{_ 'smtp-host'}}
      .description {{_ 'smtp-host-description'}}
      .form-group
        input.form-control#mail-server-host(type="text", placeholder="smtp.domain.com" value="{{currentSetting.mailServer.host}}")
    li.smtp-form
      .title {{_ 'smtp-port'}}
      .description {{_ 'smtp-port-description'}}
      .form-group
        input.form-control#mail-server-port(type="text", placeholder="25" value="{{currentSetting.mailServer.port}}")
    li.smtp-form
      .title {{_ 'smtp-username'}}
      .form-group
        input.form-control#mail-server-username(type="text", placeholder="{{_ 'username'}}" value="{{currentSetting.mailServer.username}}")
    li.smtp-form
      .title {{_ 'smtp-password'}}
      .form-group
        input.form-control#mail-server-password(type="text", placeholder="{{_ 'password'}}" value="{{currentSetting.mailServer.password}}")
    li.smtp-form
      .title {{_ 'smtp-tls'}}
      .form-group
        a.flex.js-toggle-tls
          .materialCheckBox#mail-server-tls(class="{{#if currentSetting.mailServer.enableTLS}}is-checked{{/if}}")

          span {{_ 'smtp-tls-description'}}

    li.smtp-form
      .title {{_ 'send-from'}}
      .form-group
        input.form-control#mail-server-from(type="email", placeholder="<EMAIL>" value="{{currentSetting.mailServer.from}}")

    li
      button.js-save.primary {{_ 'save'}}
{'fraction_non_alphanumeric': 0.1633416458852868, 'fraction_numerical': 0.0010687566797292483, 'mean_word_length': 2.4092289010321797, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7380838', 'n_tokens_mistral': 1772, 'n_tokens_neox': 1707, 'n_words': 235}