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>
|
||||||
<div *ngIf="statisticsSum && (statisticsSum.total_projects>0) && statisticsDisplay" class="uk-margin uk-margin-top">
|
<div *ngIf="statisticsSum && (statisticsSum.total_projects>0) && statisticsDisplay" class="uk-margin uk-margin-top">
|
||||||
<div class="uk-grid">
|
<div class="uk-grid">
|
||||||
<ul class="uk-tab uk-tab-left uk-width-1-6 uk-margin-top" data-uk-tab="{connect:'#tabs'}">
|
<div class="uk-width-1-6@m uk-visible@m uk-margin-top">
|
||||||
<li *ngFor="let entity of allowedEntities"
|
<div uk-sticky="offset: 120">
|
||||||
(click)="onChangeEntity(entity)">
|
<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>
|
<a href="#">{{ entitiesMap.get(entity) }}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<ul id="tabs" class="uk-switcher uk-margin uk-width-5-6" style="min-height:450px; padding-left:40px;">
|
<div class="uk-hidden@m uk-clearfix uk-width-1-1 uk-margin-bottom">
|
||||||
<li *ngFor="let entity of allowedEntities">
|
<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 *ngIf="(displayedEntity == entity) && statisticsSum[entity]">
|
||||||
<div class="uk-text-uppercase uk-text-bold uk-heading-divider">
|
<div class="uk-text-uppercase uk-text-bold uk-heading-divider">
|
||||||
<h2>{{ entitiesMap.get(entity) }} statistics</h2>
|
<h2>{{ entitiesMap.get(entity) }} statistics</h2>
|
||||||
|
|
Loading…
Reference in New Issue