<% settings = Setting.plugin_redmine_ux_toolkit || {} %>
<% secure_external_links_enabled = settings.fetch('secure_external_links', '1').to_s == '1' %>

<div class="ux-toolkit-settings-section">
  <p>
    <strong><%= l(:label_ux_toolkit_links) %></strong>
  </p>

  <p>
    <%= hidden_field_tag 'settings[secure_external_links]', '0', id: nil %>
    <%= check_box_tag 'settings[secure_external_links]',
                      '1',
                      secure_external_links_enabled,
                      id: 'settings_secure_external_links' %>
    <%= label_tag 'settings_secure_external_links',
                  l(:label_ux_toolkit_secure_external_links) %>
    <em class="info"><%= l(:text_ux_toolkit_secure_external_links_help) %></em>
  </p>
</div>

<div class="ux-toolkit-settings-section">
  <%= render partial: 'settings/redmine_ux_toolkit/navigation' %>
</div>
