forked from MarseyWorld/MarseyWorld
add BOTS feature
parent
7b4a23ac11
commit
132f7a4115
|
@ -537,6 +537,7 @@ FEATURES = {
|
|||
'ASSET_SUBMISSIONS': False,
|
||||
'NSFW_MARKING': True,
|
||||
'PING_GROUPS': True,
|
||||
'BOTS': True,
|
||||
}
|
||||
|
||||
WERKZEUG_ERROR_DESCRIPTIONS = {
|
||||
|
@ -835,6 +836,7 @@ elif SITE == 'watchpeopledie.tv':
|
|||
|
||||
FEATURES['PATRON_ICONS'] = True
|
||||
FEATURES['NSFW_MARKING'] = False
|
||||
FEATURES['BOTS'] = False
|
||||
|
||||
PERMS['HOLE_CREATE'] = 2
|
||||
PERMS['POST_EDITING'] = 2
|
||||
|
|
|
@ -24,7 +24,8 @@ from .reporting import *
|
|||
from .front import *
|
||||
from .login import *
|
||||
from .mail import *
|
||||
from .oauth import *
|
||||
if FEATURES['BOTS']:
|
||||
from .oauth import *
|
||||
from .posts import *
|
||||
from .search import *
|
||||
from .settings import *
|
||||
|
|
|
@ -21,7 +21,9 @@
|
|||
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/advanced' %} active{% endif %}" href="/settings/advanced">Advanced</a></li>
|
||||
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/css' %} active{% endif %}" href="/settings/css">CSS</a></li>
|
||||
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/security' %} active{% endif %}" href="/settings/security">Security</a></li>
|
||||
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/apps' %} active{% endif %}" href="/settings/apps">Apps/Bots</a></li>
|
||||
{% if FEATURES["BOTS"] %}
|
||||
<li class="nav-item"><a class="nav-link{% if request.path=='/settings/apps' %} active{% endif %}" href="/settings/apps">Apps/Bots</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue