aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/admin/templates/navigation/sidebar-menu.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/admin/templates/navigation/sidebar-menu.html.twig')
-rwxr-xr-xmain/app/sprinkles/admin/templates/navigation/sidebar-menu.html.twig43
1 files changed, 43 insertions, 0 deletions
diff --git a/main/app/sprinkles/admin/templates/navigation/sidebar-menu.html.twig b/main/app/sprinkles/admin/templates/navigation/sidebar-menu.html.twig
new file mode 100755
index 0000000..bde2674
--- /dev/null
+++ b/main/app/sprinkles/admin/templates/navigation/sidebar-menu.html.twig
@@ -0,0 +1,43 @@
+{% block navigation %}
+ {% if checkAccess('uri_dashboard') %}
+ <li>
+ <a href="{{site.uri.public}}/dashboard"><i class="fa fa-dashboard fa-fw"></i> <span>{{ translate("DASHBOARD") }}</span></a>
+ </li>
+ {% endif %}
+ {% if checkAccess('uri_users') %}
+ <li>
+ <a href="{{site.uri.public}}/users"><i class="fa fa-user fa-fw"></i> <span>{{ translate("USER", 2) }}</span></a>
+ </li>
+ {% elseif checkAccess('uri_group', {
+ 'group': current_user.group
+ }) %}
+ <li>
+ <a href="{{site.uri.public}}/groups/g/{{current_user.group.slug}}"><i class="{{current_user.group.icon}} fa-fw"></i> <span>{{ translate("GROUP.MANAGE") }}</span></a>
+ </li>
+ {% endif %}
+ {% if checkAccess('uri_activities') %}
+ <li>
+ <a href="{{site.uri.public}}/activities"><i class="fa fa-tasks fa-fw"></i> <span>{{ translate("ACTIVITY", 2) }}</span></a>
+ </li>
+ {% endif %}
+ {% if checkAccess('uri_roles') %}
+ <li>
+ <a href="{{site.uri.public}}/roles"><i class="fa fa-drivers-license fa-fw"></i> <span>{{ translate("ROLE", 2) }}</span></a>
+ </li>
+ {% endif %}
+ {% if checkAccess('uri_permissions') %}
+ <li>
+ <a href="{{site.uri.public}}/permissions"><i class="fa fa-key fa-fw"></i> <span>{{ translate("PERMISSION", 2) }}</span></a>
+ </li>
+ {% endif %}
+ {% if checkAccess('uri_groups') %}
+ <li>
+ <a href="{{site.uri.public}}/groups"><i class="fa fa-users fa-fw"></i> <span>{{ translate("GROUP", 2) }}</span></a>
+ </li>
+ {% endif %}
+ {% if checkAccess('update_site_config') %}
+ <li>
+ <a href="{{site.uri.public}}/settings"><i class="fa fa-gears fa-fw"></i> <span>{{ translate("SITE.CONFIG.MANAGER") }}</span></a>
+ </li>
+ {% endif %}
+{% endblock %} \ No newline at end of file