From 7e2708686fe28f7a2a1d3dce9c3ca21b259d0884 Mon Sep 17 00:00:00 2001
From: Kristian Feldsam
Date: Sun, 24 Oct 2021 12:42:08 +0200
Subject: [PATCH] [Web] show "apps" only if there are any
Signed-off-by: Kristian Feldsam
---
data/web/templates/base.twig | 2 ++
data/web/templates/index.twig | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/data/web/templates/base.twig b/data/web/templates/base.twig
index 4243f6ac..79042d59 100644
--- a/data/web/templates/base.twig
+++ b/data/web/templates/base.twig
@@ -65,6 +65,7 @@
{% if mailcow_cc_role == 'admin' and not skip_sogo %}
{{ lang.header.restart_sogo }}
{% endif %}
+ {% if mailcow_apps or app_links %}
{{ ui_texts.apps_name|raw }}
+ {% endif %}
{% if not dual_login and mailcow_cc_username %}
{{ mailcow_cc_username }}
{% elseif dual_login %}
diff --git a/data/web/templates/index.twig b/data/web/templates/index.twig
index 0f2abe12..056421fe 100644
--- a/data/web/templates/index.twig
+++ b/data/web/templates/index.twig
@@ -64,7 +64,7 @@
{{ lang.login.delayed|format(login_delay) }}
{% endif %}
- {% if not oauth2_request %}
+ {% if not oauth2_request and (mailcow_apps or app_links) %}
{% for app in mailcow_apps %}