statistics.component.html (Monitor page): Make left tabs sticky on medium (or larger) screens, show them as dropdown menu on small screens.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@53608 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
a8c2dc98dd
commit
cdd337a61f
|
@ -8,16 +8,36 @@
|
|||
</div>
|
||||
<div *ngIf="statisticsSum && (statisticsSum.total_projects>0) && statisticsDisplay" class="uk-margin uk-margin-top">
|
||||
<div class="uk-grid">
|
||||
<ul class="uk-tab uk-tab-left uk-width-1-6 uk-margin-top" data-uk-tab="{connect:'#tabs'}">
|
||||
<li *ngFor="let entity of allowedEntities"
|
||||
(click)="onChangeEntity(entity)">
|
||||
<div class="uk-width-1-6@m uk-visible@m uk-margin-top">
|
||||
<div uk-sticky="offset: 120">
|
||||
<ul class="uk-tab uk-tab-left" uk-tab="connect:#tabs">
|
||||
<!-- <ul class="uk-tab uk-tab-left uk-width-1-6 uk-margin-top" data-uk-tab="{connect:'#tabs'}"> -->
|
||||
<li *ngFor="let entity of allowedEntities"
|
||||
(click)="onChangeEntity(entity)" [class]="displayedEntity == entity?'uk-active':''">
|
||||
|
||||
<a href="#">{{ entitiesMap.get(entity) }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
<a href="#">{{ entitiesMap.get(entity) }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul id="tabs" class="uk-switcher uk-margin uk-width-5-6" style="min-height:450px; padding-left:40px;">
|
||||
<li *ngFor="let entity of allowedEntities">
|
||||
<div class="uk-hidden@m uk-clearfix uk-width-1-1 uk-margin-bottom">
|
||||
<button class="uk-button uk-button-default uk-hidden@m " type="button">
|
||||
<span uk-navbar-toggle-icon></span> <span class="uk-margin-small-left">{{entitiesMap.get(displayedEntity)}}</span>
|
||||
</button>
|
||||
|
||||
<ul id="toggle-small-tabs" class="uk-subnav uk-subnav-pill uk-dropdown uk-hidden@m"
|
||||
uk-switcher="connect:#tabs; animation: uk-animation-fade"
|
||||
uk-dropdown="mode: click" uk-toggle="target: #toggle-small-tabs">
|
||||
<li *ngFor="let entity of allowedEntities"
|
||||
(click)="onChangeEntity(entity)" [class]="displayedEntity == entity?'uk-active':''">
|
||||
<a>{{ entitiesMap.get(entity) }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<ul id="tabs" class="uk-switcher uk-margin uk-width-expand" style="min-height:450px; padding-left:40px;">
|
||||
<li *ngFor="let entity of allowedEntities" [class]="displayedEntity == entity?'uk-active':''">
|
||||
<div *ngIf="(displayedEntity == entity) && statisticsSum[entity]">
|
||||
<div class="uk-text-uppercase uk-text-bold uk-heading-divider">
|
||||
<h2>{{ entitiesMap.get(entity) }} statistics</h2>
|
||||
|
@ -107,7 +127,7 @@
|
|||
statisticsDisplay.entities[entity].charts.map['graph'][currentMode] &&
|
||||
chartsUrlMap[entity + 'Graph'] &&
|
||||
(displayedGraph == (entity + 'Graph')))">
|
||||
|
||||
|
||||
<div *ngIf="statisticsDisplay.entities[entity].charts.map['projectColumn'][currentMode] ||
|
||||
statisticsDisplay.entities[entity].charts.map['projectPie'][currentMode] ||
|
||||
statisticsDisplay.entities[entity].charts.map['projectTable'][currentMode]">
|
||||
|
|
Loading…
Reference in New Issue