mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-03 00:07:05 +00:00
option to disable Nextcloud items in management console
This commit is contained in:
parent
55da363b25
commit
d6753c3830
@ -133,6 +133,8 @@ def index():
|
||||
|
||||
backup_s3_hosts=backup_s3_hosts,
|
||||
csr_country_codes=csr_country_codes,
|
||||
|
||||
nextcloud_enable=env['NEXTCLOUD_ENABLE']
|
||||
)
|
||||
|
||||
# Create a session key by checking the username/password in the Authorization header.
|
||||
|
@ -139,7 +139,9 @@
|
||||
<li><a href="#mfa" onclick="return show_panel(this);">Two-Factor Authentication</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
{% if nextcloud_enable==1 %}
|
||||
<li><a href="#sync_guide" onclick="return show_panel(this);" class="if-logged-in">Contacts/Calendar</a></li>
|
||||
{% endif %}
|
||||
<li><a href="#web" onclick="return show_panel(this);" class="if-logged-in-admin">Web</a></li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
@ -190,9 +192,11 @@
|
||||
{% include "aliases.html" %}
|
||||
</div>
|
||||
|
||||
{% if nextcloud_enable==1 %}
|
||||
<div id="panel_sync_guide" class="admin_panel">
|
||||
{% include "sync-guide.html" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div id="panel_web" class="admin_panel">
|
||||
{% include "web.html" %}
|
||||
|
@ -98,6 +98,8 @@ export LC_ALL=en_US.UTF-8
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_TYPE=en_US.UTF-8
|
||||
|
||||
source /etc/mailinabox.conf
|
||||
|
||||
source $venv/bin/activate
|
||||
exec python $(pwd)/management/daemon.py
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user