-
Notifications
You must be signed in to change notification settings - Fork 60
/
tab.html.twig
24 lines (21 loc) · 1.29 KB
/
tab.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% trans_default_domain 'locationview' %}
<section>
{% include '@EzPlatformAdminUi/parts/table_header.html.twig' with { headerText: 'tab.relations.related_content'|trans({'%contentName%' : ez_content_name(content)})|desc('Related content (content items used by %contentName%)') } %}
{% if relations is not empty %}
{{ include('@EzPlatformAdminUi/content/tab/relations/table.html.twig', {'relations': relations}) }}
{% else %}
<p class="ez-table-no-content">
{{ 'tab.relations.no_relations'|trans()|desc('This content item has no related content.') }}
</p>
{% endif %}
{% if reverse_relations is defined %}
{% include '@EzPlatformAdminUi/parts/table_header.html.twig' with { headerText: 'tab.relations.reverse_relations'|trans({'%contentName%' : ez_content_name(content)})|desc('Reverse relations (content items using %contentName%)') } %}
{% if reverse_relations is not empty %}
{{ include('@EzPlatformAdminUi/content/tab/relations/table.html.twig', {'relations': reverse_relations}) }}
{% else %}
<p class="ez-table-no-content">
{{ 'tab.relations.no_reverse_relations'|trans()|desc('This content item has no reverse relations.') }}
</p>
{% endif %}
{% endif %}
</section>