diff --git a/bundle/Resources/views/themes/ngadmin/content/tab/urls.html.twig b/bundle/Resources/views/themes/ngadmin/content/tab/urls.html.twig index a8f9557..cc867f9 100644 --- a/bundle/Resources/views/themes/ngadmin/content/tab/urls.html.twig +++ b/bundle/Resources/views/themes/ngadmin/content/tab/urls.html.twig @@ -1,12 +1,16 @@ {% trans_default_domain 'ibexa_content_url' %} -{% include '@ibexadesign/content/tab/url/siteaccess_urls_table.html.twig' with { - headline:'tab.urls.siteaccess.headline.siteaccess_urls'|trans|desc - ('Siteaccess URLs'), - siteaccess_urls: siteaccess_urls, -} only %} +{% if siteaccess_urls|default([]) is not empty %} + {% include '@ibexadesign/content/tab/url/siteaccess_urls_table.html.twig' with { + headline:'tab.urls.siteaccess.headline.siteaccess_urls'|trans|desc + ('Siteaccess URLs'), + siteaccess_urls: siteaccess_urls, + } only %} +{% endif %} -{% if show_siteaccess_urls_outside_configured_content_tree_root %} +{% if show_siteaccess_urls_outside_configured_content_tree_root|default(false) == true + and siteaccess_urls_outside_configured_content_tree_root|default([]) is not empty +%} {% include '@ibexadesign/content/tab/url/siteaccess_urls_table.html.twig' with { headline: 'tab.urls.siteaccess.headline.siteaccess_urls.outside_configured_content_tree_root'|trans|desc