|
|
|
@ -25,12 +25,13 @@
|
|
|
|
|
<li>
|
|
|
|
|
<a href="{{@app.context}}">
|
|
|
|
|
<i class="fw fw-dashboard"></i>
|
|
|
|
|
Admin Dashboard
|
|
|
|
|
Resource Dashboard
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
{{#if permissions.LIST_DEVICES}}
|
|
|
|
|
<li>
|
|
|
|
|
<!--suppress HtmlUnknownTarget -->
|
|
|
|
|
<a href="{{@app.context}}/devices">
|
|
|
|
|
<i class="fw fw-mobile"></i>
|
|
|
|
|
Device Management
|
|
|
|
@ -38,33 +39,41 @@
|
|
|
|
|
</li>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if permissions.USER_MGT_PERMITTED}}
|
|
|
|
|
<li><a><i class="fw fw-user"></i>User Management</a>
|
|
|
|
|
<ul>
|
|
|
|
|
{{#if permissions.LIST_USERS}}
|
|
|
|
|
<li><a href="{{@app.context}}/users"><i class="fw fw-user"></i>Users</a></li>
|
|
|
|
|
<li><!--suppress HtmlUnknownTarget -->
|
|
|
|
|
<a href="{{@app.context}}/users"><i class="fw fw-user"></i>Users</a></li>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
{{#if permissions.LIST_ROLES}}
|
|
|
|
|
<li><a href="{{@app.context}}/roles"><i class="fw fw-bookmark"></i>Roles</a></li>
|
|
|
|
|
<li><!--suppress HtmlUnknownTarget -->
|
|
|
|
|
<a href="{{@app.context}}/roles"><i class="fw fw-bookmark"></i>Roles</a></li>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{#if permissions.LIST_POLICIES}}
|
|
|
|
|
<li><a href="{{@app.context}}/policies"><i class="fw fw-policy"></i>Policy Management</a></li>
|
|
|
|
|
<li><!--suppress HtmlUnknownTarget -->
|
|
|
|
|
<a href="{{@app.context}}/policies"><i class="fw fw-policy"></i>Policy Management</a></li>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{#if permissions.CONFIG_MGT_PERMITTED}}
|
|
|
|
|
<li><a><i class="fw fw-settings"></i>Configuration Management</a>
|
|
|
|
|
<ul>
|
|
|
|
|
{{#if permissions.LIST_CONFIGURATION}}
|
|
|
|
|
<li><a href="{{@app.context}}/platform-configuration"><i class="fw fw-service"></i>Platform Configurations</a>
|
|
|
|
|
{{#if permissions.LIST_PLATFORM_CONFIGURATIONS}}
|
|
|
|
|
<li><!--suppress HtmlUnknownTarget -->
|
|
|
|
|
<a href="{{@app.context}}/platform-configuration"><i class="fw fw-service"></i>Platform Configurations</a>
|
|
|
|
|
</li>
|
|
|
|
|
{{/if}}
|
|
|
|
|
<!-- todo change the permission and get the related permission -->
|
|
|
|
|
{{#if permissions.LIST_CONFIGURATION}}
|
|
|
|
|
<li><a href="{{@app.context}}/certificates"><i class="fw fw-security-policy"></i>Certificate Configurations</a>
|
|
|
|
|
{{#if permissions.LIST_CERTIFICATES}}
|
|
|
|
|
<li><!--suppress HtmlUnknownTarget -->
|
|
|
|
|
<a href="{{@app.context}}/certificates"><i class="fw fw-security-policy"></i>Certificate Configurations</a>
|
|
|
|
|
</li>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
{{/if}}
|
|
|
|
|
{{/zone}}
|
|
|
|
|
|
|
|
|
|
{{#zone "navbarCollapsableRightItems"}}
|
|
|
|
@ -83,6 +92,7 @@
|
|
|
|
|
</ul>
|
|
|
|
|
{{/zone}}
|
|
|
|
|
{{#zone "sidePanes"}}
|
|
|
|
|
<!--suppress HtmlUnknownAttribute -->
|
|
|
|
|
<div class="sidebar-wrapper" id="right-sidebar" is-authorized="{{permissions.LIST_NOTIFICATIONS}}"
|
|
|
|
|
data-side="right" data-width="320" data-sidebar-fixed="true" data-fixed-offset="50" data-spy="affix"
|
|
|
|
|
data-offset-top="80">
|
|
|
|
@ -92,6 +102,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
{{/zone}}
|
|
|
|
|
{{#zone "bottomJs"}}
|
|
|
|
|
<!--suppress HtmlUnknownTarget -->
|
|
|
|
|
<script id="notifications" data-current-user="{{currentUser.username}}"
|
|
|
|
|
data-image-resource="{{@unit.publicUri}}/images/" src="{{@unit.publicUri}}/templates/notifications.hbs"
|
|
|
|
|
type="text/x-handlebars-template"></script>
|
|
|
|
|