06/16 Phase 6 (continue)
This commit is contained in:
@@ -3,19 +3,10 @@
|
||||
{% block content %}
|
||||
{% include "admin/_nav.html" %}
|
||||
<div class="card">
|
||||
<h2>{{ _('Moderation settings') }}</h2>
|
||||
<form method="post" action="{{ url_for('admin.listings_settings') }}" class="settings-panel">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<div class="field">
|
||||
<label>{{ _('Auto-flag threshold (distinct reports)') }}</label>
|
||||
<input class="input" type="number" name="flag_threshold" value="{{ flag_threshold }}" min="1">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>{{ _('Keyword blocklist (one per line)') }}</label>
|
||||
<textarea class="input" name="keyword_blocklist">{{ keyword_blocklist|join('\n') }}</textarea>
|
||||
</div>
|
||||
<button class="btn" type="submit">{{ _('Save settings') }}</button>
|
||||
</form>
|
||||
<p class="muted">
|
||||
{{ _('Auto-flag threshold: %(n)s distinct reports · Blocklist: %(k)s keywords', n=flag_threshold, k=keyword_blocklist|length) }}
|
||||
· <a href="{{ url_for('admin.settings') }}">{{ _('Edit in Settings') }}</a>
|
||||
</p>
|
||||
|
||||
<h2>{{ _('Flag queue') }}</h2>
|
||||
{% if not pagination.items %}<p class="muted">{{ _('No flagged listings.') }}</p>{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user