mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 07:50:23 +01:00
Option to check public ban message by default
This commit is contained in:
parent
8421a4ea7b
commit
aa598d28d1
@ -860,7 +860,7 @@
|
|||||||
// Number of news entries to display per page
|
// Number of news entries to display per page
|
||||||
$config['mod']['news_page'] = 40;
|
$config['mod']['news_page'] = 40;
|
||||||
|
|
||||||
// Number of results to dispaly per page
|
// Number of results to display per page
|
||||||
$config['mod']['search_page'] = 200;
|
$config['mod']['search_page'] = 200;
|
||||||
|
|
||||||
// How many entries to show per page in the moderator noticeboard
|
// How many entries to show per page in the moderator noticeboard
|
||||||
@ -868,6 +868,8 @@
|
|||||||
// Number of entries to summarize and display on the dashboard
|
// Number of entries to summarize and display on the dashboard
|
||||||
$config['mod']['noticeboard_dashboard'] = 5;
|
$config['mod']['noticeboard_dashboard'] = 5;
|
||||||
|
|
||||||
|
// Check public ban message by default
|
||||||
|
$config['mod']['check_ban_message'] = false;
|
||||||
// Default public ban message
|
// Default public ban message
|
||||||
$config['mod']['default_ban_message'] = 'USER WAS BANNED FOR THIS POST';
|
$config['mod']['default_ban_message'] = 'USER WAS BANNED FOR THIS POST';
|
||||||
// What to append to the post for public bans ("%s" is the message)
|
// What to append to the post for public bans ("%s" is the message)
|
||||||
|
@ -41,11 +41,11 @@
|
|||||||
<label for="reason">{% trans 'Message' %}</label>
|
<label for="reason">{% trans 'Message' %}</label>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" id="public_message" name="public_message">
|
<input type="checkbox" id="public_message" name="public_message"{% if config.mod.check_ban_message %} checked{% endif %}>
|
||||||
<input type="text" name="message" id="message" size="35" maxlength="200" value="{{ config.mod.default_ban_message|e }}">
|
<input type="text" name="message" id="message" size="35" maxlength="200" value="{{ config.mod.default_ban_message|e }}">
|
||||||
<span class="unimportant">({% trans 'public; attached to post' %})</span>
|
<span class="unimportant">({% trans 'public; attached to post' %})</span>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
document.getElementById('message').disabled = true;
|
document.getElementById('message').disabled = !document.getElementById('public_message').checked;
|
||||||
document.getElementById('public_message').onchange = function() {
|
document.getElementById('public_message').onchange = function() {
|
||||||
document.getElementById('message').disabled = !this.checked;
|
document.getElementById('message').disabled = !this.checked;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user