-
Notifications
You must be signed in to change notification settings - Fork 1
/
_navigation.html.twig
89 lines (74 loc) · 4.28 KB
/
_navigation.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<header class="uk-flex">
<button uk-toggle="target: #unite-main-menu-main; animation: uk-animation-slide-top"><i data-feather="menu"></i></button>
<h2 class="uk-text-center uk-flex-1">{{ unite.organization }}</h2>
<button uk-toggle="target: #unite-main-menu-user; animation: uk-animation-slide-top"><i data-feather="user"></i></button>
</header>
<article id="unite-main-menu-main" class="uk-flex-1" hidden>
<button type="button" uk-close uk-toggle="target: #unite-main-menu-main; animation: uk-animation-slide-top"></button>
{% if is_granted(constant('UniteCMS\\CoreBundle\\Security\\Voter\\OrganizationVoter::UPDATE'), unite.organization) %}
<ul class="uk-nav">
<li class="uk-nav-header">{% trans %}organization.menu.manage.header{% endtrans %}</li>
{% block manage_organization %}
<!--li><a href="#">{% trans %}organization.menu.manage.settings{% endtrans %}</a></li-->
<li>
<a href="{{ url('unitecms_core_organizationuser_index', [unite.organization]) }}">
<i data-feather="users" class="uk-margin-small-right"></i>
{% trans %}organization.menu.manage.user{% endtrans %}
</a>
</li>
<li>
<a href="{{ url('unitecms_core_organizationapikey_index', [unite.organization]) }}">
<i data-feather="lock" class="uk-margin-small-right"></i>
{% trans %}organization.menu.manage.api_keys{% endtrans %}
</a>
</li>
<!--li><a href="#">{% trans %}organization.menu.manage.delete{% endtrans %}</a></li-->
{% endblock manage_organization %}
</ul>
{% endif %}
<ul class="uk-nav">
{% block new_domain_from_config %}
{% if is_granted(constant('UniteCMS\\CoreBundle\\Security\\Voter\\OrganizationVoter::UPDATE'), organization) and organization.missingDomainConfigIdentifiers|length > 0 %}
<li class="uk-nav-header uk-text-warning" title="{% trans %}organization.menu.new_domains_from_config.description{% endtrans %}" uk-tooltip>
{% trans %}organization.menu.new_domains_from_config.header{% endtrans %}
<i data-feather="help-circle"></i>
</li>
{% for identifier in organization.missingDomainConfigIdentifiers %}
<li>
<a class="uk-text-warning" href="{{ url('unitecms_core_domain_create', { organization: organization, import: identifier }) }}">
<i data-feather="plus-circle" class="uk-margin-small-right"></i>
{{ identifier }}
</a>
</li>
{% endfor %}
{% endif %}
{% endblock new_domain_from_config %}
<li class="uk-nav-header">{% trans %}organization.menu.domains.header{% endtrans %}</li>
{% block domain_list %}
{% for domain in unite.organization.domains %}
{% if is_granted(constant('UniteCMS\\CoreBundle\\Security\\Voter\\DomainVoter::VIEW'), domain) %}
<li>
<a href="{{ url('unitecms_core_domain_view', [domain]) }}">
<i data-feather="globe" class="uk-margin-small-right"></i>
{{ domain }}
</a>
</li>
{% endif %}
{% endfor %}
{% endblock domain_list %}
{% if is_granted(constant('UniteCMS\\CoreBundle\\Security\\Voter\\OrganizationVoter::UPDATE'), organization) %}
<li>
<a class="uk-text-success" href="{{ url('unitecms_core_domain_create', [unite.organization]) }}">
<i data-feather="plus" class="uk-margin-small-right"></i>
{% trans %}organization.menu.domains.add{% endtrans %}
</a>
</li>
{% endif %}
</ul>
</article>
{% block footer %}
<footer id="unite-main-menu-user" hidden>
<button type="button" uk-close uk-toggle="target: #unite-main-menu-user; animation: uk-animation-slide-top"></button>
{% include '@UniteCMSCore/_user-menu.html.twig' %}
</footer>
{% endblock %}