[Web] show "apps" only if there are any
Signed-off-by: Kristian Feldsam <feldsam@gmail.com>master
parent
8116bf5ea3
commit
7e2708686f
|
@ -65,6 +65,7 @@
|
||||||
{% if mailcow_cc_role == 'admin' and not skip_sogo %}
|
{% if mailcow_cc_role == 'admin' and not skip_sogo %}
|
||||||
<li><a href data-toggle="modal" data-container="sogo-mailcow" data-target="#RestartContainer"><i class="bi bi-arrow-repeat"></i> {{ lang.header.restart_sogo }}</a></li>
|
<li><a href data-toggle="modal" data-container="sogo-mailcow" data-target="#RestartContainer"><i class="bi bi-arrow-repeat"></i> {{ lang.header.restart_sogo }}</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if mailcow_apps or app_links %}
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="bi bi-link-45deg"></i> {{ ui_texts.apps_name|raw }} <span class="caret"></span></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="bi bi-link-45deg"></i> {{ ui_texts.apps_name|raw }} <span class="caret"></span></a>
|
||||||
<ul class="dropdown-menu" role="menu">
|
<ul class="dropdown-menu" role="menu">
|
||||||
|
@ -82,6 +83,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% if not dual_login and mailcow_cc_username %}
|
{% if not dual_login and mailcow_cc_username %}
|
||||||
<li class="logged-in-as"><a href="#" onclick="logout.submit()"><b class="username-lia">{{ mailcow_cc_username }}</b> <i class="bi bi-power"></i></a></li>
|
<li class="logged-in-as"><a href="#" onclick="logout.submit()"><b class="username-lia">{{ mailcow_cc_username }}</b> <i class="bi bi-power"></i></a></li>
|
||||||
{% elseif dual_login %}
|
{% elseif dual_login %}
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
<p><div class="alert alert-info">{{ lang.login.delayed|format(login_delay) }}</b></div></p>
|
<p><div class="alert alert-info">{{ lang.login.delayed|format(login_delay) }}</b></div></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div id="fido2-alerts"></div>
|
<div id="fido2-alerts"></div>
|
||||||
{% if not oauth2_request %}
|
{% if not oauth2_request and (mailcow_apps or app_links) %}
|
||||||
<legend><i class="bi bi-link-45deg"></i> {{ ui_texts.apps_name|raw }}</legend>
|
<legend><i class="bi bi-link-45deg"></i> {{ ui_texts.apps_name|raw }}</legend>
|
||||||
<div class="apps">
|
<div class="apps">
|
||||||
{% for app in mailcow_apps %}
|
{% for app in mailcow_apps %}
|
||||||
|
|
Loading…
Reference in New Issue