<%= t(".heading") %>
<%= form_for @admin_setting, html: { class: "verbose manage" } do |f| %>
<%= error_messages_for @admin_setting %>
- <%= admin_setting_checkbox(f, :suspend_filter_counts) %>
- <%= f.label :suspend_filter_counts, t(".fields.suspend_filter_counts") %>
- <%= admin_setting_checkbox(f, :tag_wrangling_off) %>
- <%= f.label :tag_wrangling_off, t(".fields.tag_wrangling_off") %>
- <%= admin_setting_checkbox(f, :downloads_enabled) %>
- <%= f.label :downloads_enabled, t(".fields.downloads_enabled") %>
- <%= admin_setting_checkbox(f, :enable_test_caching) %>
- <%= f.label :enable_test_caching, t(".fields.enable_test_caching") %>
- <%= f.label :cache_expiration, t(".fields.cache_expiration") %>
- <%= admin_setting_text_field(f, :cache_expiration, size: "3") %>
- <%= admin_setting_checkbox(f, :hide_spam) %>
- <%= f.label :hide_spam, t(".fields.hide_spam") %>
- <%= admin_setting_checkbox(f, :guest_comments_off) %>
- <%= f.label :guest_comments_off, t(".fields.guest_comments_off") %>
- <%= f.label :account_age_threshold_for_comment_spam_check, t(".fields.account_age_threshold_for_comment_spam_check") %>
-
<%= admin_setting_text_field(f, :account_age_threshold_for_comment_spam_check, size: "3", "aria-describedby": "account-age-threshold-for-comment-spam-check-note") %>
<%= f.submit t(".update") %>
<% end %>
<% if @admin_setting.invite_from_queue_enabled? %>
<%= t(".queue_status",
count: @admin_setting.invite_from_queue_number,
time: l(@admin_setting.invite_from_queue_at, format: :long)) %>
<%= t(".queue_status_help") %>
<% end %>
<%= t(".last_updated_by_admin",
updated_at: @admin_setting.updated_at,
admin_name: @admin_setting.last_updated ? @admin_setting.last_updated.login : "---") %>