Files
dc/client/src/app/shared/sidebar/sidebar.component.html
Mihajlo Medjedovic e056ece223
Some checks failed
Build / Build-and-ng-test (pull_request) Failing after 1m5s
fix: approve, history and submit pages grouped in review module
Using compodoc instead of typedoc because of better angular support.
2023-08-01 14:50:04 +02:00

124 lines
3.3 KiB
HTML

<clr-vertical-nav
#sidebarNav
id="sidebarNav"
[class.closed]="!sidebarOpen"
[style.width.px]="sidebarWidth"
[style.max-width.px]="sidebarMaxWidth"
[class.resizing]="resizing"
>
<div
*ngIf="isMainRoute('view')"
class="d-flex justify-content-center sub-dropdown"
>
<clr-dropdown>
<button class="dropdown-toggle btn btn-link" clrDropdownTrigger>
{{ getSubPage() }}
<clr-icon shape="caret down"></clr-icon>
</button>
<clr-dropdown-menu *clrIfOpen>
<a
*ngIf="isMainRoute('view')"
clrVerticalNavLink
(click)="navigateToViewer()"
routerLinkActive="active"
>Data</a
>
<a
*ngIf="isMainRoute('view') && serverType === 'SASVIYA'"
clrVerticalNavLink
routerLink="/view/viya-api-explorer"
routerLinkActive="active"
>API Explorer</a
>
<a
*ngIf="isMainRoute('view') && serverType === 'SAS9'"
clrVerticalNavLink
routerLink="/view/lineage"
routerLinkActive="active"
>Lineage</a
>
<a
*ngIf="isMainRoute('view') && serverType === 'SAS9'"
clrVerticalNavLink
routerLink="/view/metadata"
routerLinkActive="active"
>Metadata</a
>
<a
*ngIf="isMainRoute('view')"
clrVerticalNavLink
routerLink="/view/usernav"
routerLinkActive="active"
>
Users</a
>
<a
*ngIf="isMainRoute('approve')"
clrVerticalNavLink
routerLink="/review/approve/submitted"
routerLinkActive="active"
>Submitted</a
>
<a
*ngIf="isMainRoute('approve')"
clrVerticalNavLink
routerLink="/review/approve/toapprove"
routerLinkActive="active"
>To Approve</a
>
</clr-dropdown-menu>
</clr-dropdown>
</div>
<clr-tabs class="p-10" *ngIf="isMainRoute('view/usernav')">
<clr-tab>
<button
[routerLink]="['/view/usernav/users']"
class="user-nav-btn"
clrTabLink
>
<p class="zero-margin"><clr-icon shape="user"></clr-icon> Users</p>
</button>
<clr-tab-content> </clr-tab-content>
</clr-tab>
<clr-tab>
<button
[routerLink]="['/view/usernav/groups']"
class="user-nav-btn"
clrTabLink
>
<p class="zero-margin"><clr-icon shape="users"></clr-icon> Groups</p>
</button>
<clr-tab-content *clrIfActive="isMainRoute('/view/usernav/groups')">
</clr-tab-content>
</clr-tab>
<clr-tab *ngIf="serverType === 'SAS9'">
<button
[routerLink]="['/view/usernav/roles']"
class="user-nav-btn"
clrTabLink
>
<p class="zero-margin">
<clr-icon shape="blocks-group"></clr-icon> Roles
</p>
</button>
<clr-tab-content *clrIfActive="isMainRoute('/view/usernav/roles')">
</clr-tab-content>
</clr-tab>
</clr-tabs>
<p *ngIf="isMainRoute('home')" class="page-title">Edit</p>
<div class="nav-divider"></div>
<div (scroll)="onTreeScroll($event)" class="nav-tree">
<ng-content></ng-content>
</div>
<span
class="resize-handle"
[class.resizing]="resizing"
(mousedown)="resizeStart()"
></span>
</clr-vertical-nav>