2016-11-21 13:46:02 +08:00
|
|
|
<div class='container safe-mode'>
|
|
|
|
<h2><%= t 'safe_mode.title'%></h2>
|
|
|
|
<%= form_tag(safe_mode_enter_path) do %>
|
|
|
|
<p>
|
|
|
|
<%= t 'safe_mode.description' %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label>
|
2022-08-15 22:15:15 +08:00
|
|
|
<%= check_box_tag 'no_themes', true, !flash[:must_select]%>
|
|
|
|
<%= t 'safe_mode.no_themes' %>
|
2016-11-21 13:46:02 +08:00
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label>
|
2022-08-15 22:15:15 +08:00
|
|
|
<%= check_box_tag 'no_unofficial_plugins', true, !flash[:must_select] %>
|
|
|
|
<%= t 'safe_mode.no_unofficial_plugins' %>
|
2016-11-21 13:46:02 +08:00
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label>
|
2017-11-13 12:59:51 +08:00
|
|
|
<%= check_box_tag 'no_plugins', true, !flash[:must_select] %>
|
2016-11-21 13:46:02 +08:00
|
|
|
<%= t 'safe_mode.no_plugins' %>
|
|
|
|
</label>
|
|
|
|
</p>
|
2023-12-13 22:06:59 +08:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= t 'safe_mode.deprecation_error_description' %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label>
|
|
|
|
<%= check_box_tag 'deprecation_errors', true, false %>
|
|
|
|
<%= t 'safe_mode.deprecation_error_label' %>
|
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
|
2016-11-21 13:46:02 +08:00
|
|
|
<p>
|
|
|
|
<%= submit_tag t('safe_mode.enter'), class: 'btn btn-danger' %>
|
2017-11-13 12:59:51 +08:00
|
|
|
<%- if flash[:must_select] %>
|
|
|
|
<span class='safe-mode-warning'>
|
2023-12-13 20:24:35 +08:00
|
|
|
⚠️ <%= t 'safe_mode.must_select' %>
|
2017-11-13 12:59:51 +08:00
|
|
|
</span>
|
|
|
|
<%- end %>
|
2016-11-21 13:46:02 +08:00
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|