|
|
|
@ -8,14 +8,14 @@
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="sidebar-content">
|
|
|
|
|
<ul class="sidebar">
|
|
|
|
|
<endpoint-selector ng-if="endpoints && groups"
|
|
|
|
|
<ul class="sidebar">
|
|
|
|
|
<endpoint-selector ng-if="endpoints && groups"
|
|
|
|
|
endpoints="endpoints"
|
|
|
|
|
groups="groups"
|
|
|
|
|
select-endpoint="switchEndpoint"
|
|
|
|
|
></endpoint-selector>
|
|
|
|
|
<li class="sidebar-title"><span>{{ activeEndpoint.Name }}</span></li>
|
|
|
|
|
<docker-sidebar-content
|
|
|
|
|
></endpoint-selector>
|
|
|
|
|
<li class="sidebar-title"><span>{{ activeEndpoint.Name }}</span></li>
|
|
|
|
|
<docker-sidebar-content
|
|
|
|
|
endpoint-api-version="applicationState.endpoint.apiVersion"
|
|
|
|
|
swarm-management="applicationState.endpoint.mode.provider === 'DOCKER_SWARM_MODE' && applicationState.endpoint.mode.role === 'MANAGER'"
|
|
|
|
|
standalone-management="applicationState.endpoint.mode.provider === 'DOCKER_STANDALONE' || applicationState.endpoint.mode.provider === 'VMWARE_VIC'"
|
|
|
|
@ -23,50 +23,56 @@
|
|
|
|
|
external-contributions="displayExternalContributors"
|
|
|
|
|
sidebar-toggled-on="toggle"
|
|
|
|
|
current-state="$state.current.name"
|
|
|
|
|
></docker-sidebar-content>
|
|
|
|
|
<li class="sidebar-title" ng-if="applicationState.endpoint.extensions.length > 0">
|
|
|
|
|
<span>Extensions</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-list" ng-if="applicationState.endpoint.extensions.indexOf('storidge') !== -1 && applicationState.endpoint.mode.provider === 'DOCKER_SWARM_MODE' && applicationState.endpoint.mode.role === 'MANAGER'">
|
|
|
|
|
<a ui-sref="storidge.cluster" ui-sref-active="active">Storidge <span class="menu-icon fa fa-bolt fa-fw"></span></a>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'storidge.cluster' || $state.current.name === 'storidge.profiles' || $state.current.name === 'storidge.monitor' || $state.current.name === 'storidge.profiles.new' || $state.current.name === 'storidge.profiles.profile')">
|
|
|
|
|
<a ui-sref="storidge.monitor" ui-sref-active="active">Monitor</a>
|
|
|
|
|
></docker-sidebar-content>
|
|
|
|
|
<li class="sidebar-title" ng-if="applicationState.endpoint.extensions.length > 0">
|
|
|
|
|
<span>Extensions</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-list" ng-if="applicationState.endpoint.extensions.indexOf('storidge') !== -1 && applicationState.endpoint.mode.provider === 'DOCKER_SWARM_MODE' && applicationState.endpoint.mode.role === 'MANAGER'">
|
|
|
|
|
<a ui-sref="storidge.cluster" ui-sref-active="active">Storidge <span class="menu-icon fa fa-bolt fa-fw"></span></a>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'storidge.cluster' || $state.current.name === 'storidge.profiles' || $state.current.name === 'storidge.monitor' || $state.current.name === 'storidge.profiles.new' || $state.current.name === 'storidge.profiles.profile')">
|
|
|
|
|
<a ui-sref="storidge.monitor" ui-sref-active="active">Monitor</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'storidge.cluster' || $state.current.name === 'storidge.profiles' || $state.current.name === 'storidge.monitor' || $state.current.name === 'storidge.profiles.new' || $state.current.name === 'storidge.profiles.profile')">
|
|
|
|
|
<a ui-sref="storidge.profiles" ui-sref-active="active">Profiles</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-title" ng-if="!applicationState.application.authentication || isAdmin || isTeamLeader">
|
|
|
|
|
<span>Portainer settings</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-list" ng-if="applicationState.application.authentication && (isAdmin || isTeamLeader)">
|
|
|
|
|
<a ui-sref="portainer.users" ui-sref-active="active">User management <span class="menu-icon fa fa-users fa-fw"></span></a>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'portainer.users' || $state.current.name === 'portainer.users.user' || $state.current.name === 'portainer.teams' || $state.current.name === 'portainer.teams.team')">
|
|
|
|
|
<a ui-sref="portainer.teams" ui-sref-active="active">Teams</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-list" ng-if="!applicationState.application.authentication || isAdmin">
|
|
|
|
|
<a ui-sref="portainer.endpoints" ui-sref-active="active">Endpoints <span class="menu-icon fa fa-plug fa-fw"></span></a>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'portainer.endpoints' || $state.current.name === 'portainer.endpoints.endpoint' || $state.current.name === 'portainer.endpoints.endpoint.access' || $state.current.name === 'portainer.groups' || $state.current.name === 'portainer.groups.group' || $state.current.name === 'portainer.groups.group.access' || $state.current.name === 'portainer.groups.new')">
|
|
|
|
|
<a ui-sref="portainer.groups" ui-sref-active="active">Groups</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-list" ng-if="!applicationState.application.authentication || isAdmin">
|
|
|
|
|
<a ui-sref="portainer.registries" ui-sref-active="active">Registries <span class="menu-icon fa fa-database fa-fw"></span></a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-list" ng-if="!applicationState.application.authentication || isAdmin">
|
|
|
|
|
<a ui-sref="portainer.settings" ui-sref-active="active">Settings <span class="menu-icon fa fa-cogs fa-fw"></span></a>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'portainer.settings' || $state.current.name === 'portainer.settings.authentication' || $state.current.name === 'portainer.about') && applicationState.application.authentication && isAdmin">
|
|
|
|
|
<a ui-sref="portainer.settings.authentication" ui-sref-active="active">Authentication</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'portainer.settings' || $state.current.name === 'portainer.settings.authentication' || $state.current.name === 'portainer.about')">
|
|
|
|
|
<a ui-sref="portainer.about" ui-sref-active="active">About</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<center>
|
|
|
|
|
<div class="ads" ng-if="toggle">
|
|
|
|
|
<adsense ad-client="ca-pub-7198891301481203" ad-slot="8992247096" inline-style="display:inline-block;width:100%;height:100%"></adsense>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'storidge.cluster' || $state.current.name === 'storidge.profiles' || $state.current.name === 'storidge.monitor' || $state.current.name === 'storidge.profiles.new' || $state.current.name === 'storidge.profiles.profile')">
|
|
|
|
|
<a ui-sref="storidge.profiles" ui-sref-active="active">Profiles</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-title" ng-if="!applicationState.application.authentication || isAdmin || isTeamLeader">
|
|
|
|
|
<span>Portainer settings</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-list" ng-if="applicationState.application.authentication && (isAdmin || isTeamLeader)">
|
|
|
|
|
<a ui-sref="portainer.users" ui-sref-active="active">User management <span class="menu-icon fa fa-users fa-fw"></span></a>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'portainer.users' || $state.current.name === 'portainer.users.user' || $state.current.name === 'portainer.teams' || $state.current.name === 'portainer.teams.team')">
|
|
|
|
|
<a ui-sref="portainer.teams" ui-sref-active="active">Teams</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-list" ng-if="!applicationState.application.authentication || isAdmin">
|
|
|
|
|
<a ui-sref="portainer.endpoints" ui-sref-active="active">Endpoints <span class="menu-icon fa fa-plug fa-fw"></span></a>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'portainer.endpoints' || $state.current.name === 'portainer.endpoints.endpoint' || $state.current.name === 'portainer.endpoints.endpoint.access' || $state.current.name === 'portainer.groups' || $state.current.name === 'portainer.groups.group' || $state.current.name === 'portainer.groups.group.access' || $state.current.name === 'portainer.groups.new')">
|
|
|
|
|
<a ui-sref="portainer.groups" ui-sref-active="active">Groups</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-list" ng-if="!applicationState.application.authentication || isAdmin">
|
|
|
|
|
<a ui-sref="portainer.registries" ui-sref-active="active">Registries <span class="menu-icon fa fa-database fa-fw"></span></a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="sidebar-list" ng-if="!applicationState.application.authentication || isAdmin">
|
|
|
|
|
<a ui-sref="portainer.settings" ui-sref-active="active">Settings <span class="menu-icon fa fa-cogs fa-fw"></span></a>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'portainer.settings' || $state.current.name === 'portainer.settings.authentication' || $state.current.name === 'portainer.about') && applicationState.application.authentication && isAdmin">
|
|
|
|
|
<a ui-sref="portainer.settings.authentication" ui-sref-active="active">Authentication</a></div>
|
|
|
|
|
<div class="sidebar-sublist" ng-if="toggle && ($state.current.name === 'portainer.settings' || $state.current.name === 'portainer.settings.authentication' || $state.current.name === 'portainer.about')">
|
|
|
|
|
<a ui-sref="portainer.about" ui-sref-active="active">About</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="sidebar-footer-content">
|
|
|
|
|
<img src="images/logo_small.png" class="img-responsive logo" alt="Portainer">
|
|
|
|
|
<span class="version">{{ uiVersion }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</center>
|
|
|
|
|
<div class="sidebar-footer-content">
|
|
|
|
|
<img src="images/logo_small.png" class="img-responsive logo" alt="Portainer">
|
|
|
|
|
<span class="version">{{ uiVersion }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- End Sidebar -->
|
|
|
|
|