discourse/app/views/safe_mode/index.html.erb
Sam e2c87da42a FEATURE: Add basic support for Safe Mode
In Safe Mode all JS extensions and site customizations are disabled.

To access Safe Mode visit `sitename.org/safe-mode`
2016-11-21 16:46:14 +11:00

30 lines
680 B
Plaintext

<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>
<%= check_box_tag 'no_customizations', true, true %>
<%= t 'safe_mode.no_customizations' %>
</label>
</p>
<p>
<label>
<%= check_box_tag 'only_official', true, true %>
<%= t 'safe_mode.only_official' %>
</label>
</p>
<p>
<label>
<%= check_box_tag 'no_plugins', true, true %>
<%= t 'safe_mode.no_plugins' %>
</label>
</p>
<p>
<%= submit_tag t('safe_mode.enter'), class: 'btn btn-danger' %>
</p>
<% end %>
</div>