2019-10-29 14:18:26 +01:00
|
|
|
<!--disable_transitions -->
|
2019-11-28 17:27:49 +01:00
|
|
|
<div class="double-header stakeholderPage">
|
2019-12-09 11:41:58 +01:00
|
|
|
<div class="">
|
|
|
|
<div id="header_menu" class="uk-width-1-1">
|
|
|
|
<nav class="uk-navbar">
|
2019-12-04 18:01:55 +01:00
|
|
|
|
2019-12-09 11:41:58 +01:00
|
|
|
<div class="uk-navbar-left">
|
|
|
|
<img class="badge "
|
|
|
|
src="assets/theme-assets/prototype_flag.svg"
|
|
|
|
alt="BETA">
|
|
|
|
<a *ngIf="stakeholder"
|
|
|
|
class="uk-logo uk-navbar-item ng-star-inserted uk-link uk-margin-small-top uk-margin-medium-left"
|
|
|
|
routerlink="/"
|
|
|
|
routerlinkactive="uk-link" href="/">
|
|
|
|
<img *ngIf="stakeholder.logoUrl" [src]="stakeholder.logoUrl" class="uk-responsive-height">
|
|
|
|
<div *ngIf="!stakeholder.logoUrl">
|
|
|
|
{{stakeholder.index_name}}
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
<div class="uk-margin-large-left uk-width-medium ng-star-inserted">
|
|
|
|
<div class="">
|
|
|
|
<!-- <div dashboard-input label="Search for..." [formInput]="keyword"></div>-->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-28 17:27:49 +01:00
|
|
|
|
2019-12-09 11:41:58 +01:00
|
|
|
<div *ngIf="stakeholder && status === errorCodes.DONE && activeTopic" class="uk-navbar-right uk-margin-right">
|
2019-12-13 16:48:24 +01:00
|
|
|
<ul class="uk-navbar-nav user_actions uk-padding uk-padding-remove-vertical">
|
|
|
|
<!--li class="uk-active">
|
2019-12-09 11:41:58 +01:00
|
|
|
<a class="uk-margin-remove-bottom "><span>Monitor</span></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a class="uk-margin-remove-bottom ">Search</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a class="uk-margin-remove-bottom ">Help</a>
|
2019-12-13 16:48:24 +01:00
|
|
|
</li-->
|
|
|
|
<li>
|
|
|
|
<user-mini *ngIf="properties"
|
|
|
|
[user]="user" [dashboard]="true" [colors]="'dark'"
|
|
|
|
[redirectUrl]="properties.afterLoginRedirectLink"
|
|
|
|
[logInUrl]=properties.loginUrl [logOutUrl]=properties.logoutUrl [cookieDomain]=properties.cookieDomain
|
|
|
|
[userMenuItems]=userMenuItems>
|
|
|
|
</user-mini>
|
2019-12-09 11:41:58 +01:00
|
|
|
</li>
|
2019-12-13 16:48:24 +01:00
|
|
|
</ul>
|
2019-11-28 17:27:49 +01:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</nav>
|
2019-11-28 17:27:49 +01:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
|
|
|
<div class="sidebar_main_swipe header_full" [class.sidebar_main_active]="open">
|
|
|
|
<div id="header_main">
|
|
|
|
<nav class="uk-light">
|
|
|
|
<div class="main_logo_top">
|
|
|
|
<div *ngIf="stakeholder && stakeholder.index_name" class=" ">
|
|
|
|
<div class="uk-text-bold uk-h4 uk-margin-remove-bottom">{{stakeholder.index_name}}</div>
|
|
|
|
<div class="uk-h5 uk-margin-remove">Monitor Dashboard</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<a id="sidebar_main_toggle" (click)="toggleOpen()" class="sSwitch sSwitch_left uk-margin-left">
|
|
|
|
<span class="sSwitchIcon"></span>
|
|
|
|
</a>
|
|
|
|
<div *ngIf="stakeholder && status === errorCodes.DONE && activeTopic" class="uk-navbar-center">
|
|
|
|
<ul class="uk-navbar-nav">
|
|
|
|
<ng-template ngFor [ngForOf]="stakeholder.topics" let-topic let-i="index">
|
|
|
|
<li *ngIf="topic.isPublic && topic.isActive"
|
|
|
|
[ngClass]="(topic.alias === activeTopic.alias)?'uk-active':''">
|
|
|
|
<a (click)="navigateTo(stakeholder.alias, topic.alias)" class="uk-margin-remove-bottom uk-h4"
|
|
|
|
><span>{{topic.name}}</span></a>
|
|
|
|
</li>
|
|
|
|
</ng-template>
|
|
|
|
</ul>
|
2019-11-28 17:27:49 +01:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
<dashboard-sidebar *ngIf="sideBar && stakeholder" [items]="sideBar.items"
|
|
|
|
[activeItem]="activeCategory?activeCategory.alias:null"
|
|
|
|
[activeSubItem]="activeSubCategory?activeSubCategory.alias:null" [showHeader]=false
|
|
|
|
></dashboard-sidebar>
|
|
|
|
<div *ngIf="activeSubCategory"
|
|
|
|
id="page_content" click-outside-or-esc targetId="page_content" [escClose]="false"
|
|
|
|
(clickOutside)="toggleOpen($event)">
|
|
|
|
<div id="page_content_inner">
|
|
|
|
<!-- <div>
|
|
|
|
Filters
|
|
|
|
<input class="uk-input uk-form-width-medium" placeholder="Funding Stream" type="text" name="fund_level_0"
|
|
|
|
[(ngModel)]="fundingL0">
|
2019-12-04 18:01:55 +01:00
|
|
|
|
2019-12-09 11:41:58 +01:00
|
|
|
<input class="uk-input uk-form-width-medium" placeholder="Start year" type="text" name="start_year"
|
|
|
|
[(ngModel)]="startYear">
|
|
|
|
<input class="uk-input uk-form-width-medium" placeholder="End year" type="text" name="end_year"
|
|
|
|
[(ngModel)]="endYear">
|
|
|
|
<button class="uk-button uk-button-primary" (click)="setIndicators()">Apply</button>
|
|
|
|
</div>-->
|
2019-12-06 14:52:26 +01:00
|
|
|
|
2019-12-09 11:41:58 +01:00
|
|
|
|
|
|
|
<div class="" *ngIf="activeSubCategory.numbers.length == 0 && activeSubCategory.charts.length == 0;">
|
|
|
|
<div class="">
|
|
|
|
<div class="uk-h3">
|
|
|
|
No indicators available yet. Stay tuned!
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="activeSubCategory" class="uk-grid uk-grid-medium uk-margin-bottom" uk-height-match="target: div.md-card">
|
|
|
|
|
|
|
|
<ng-template ngFor [ngForOf]="activeSubCategory.numbers" let-number let-i="index">
|
|
|
|
<div *ngIf="number.isActive && number.isPublic"
|
|
|
|
[class.uk-width-1-3@m]="number.width === 'small'"
|
|
|
|
[class.uk-width-1-2@m]="number.width === 'medium'"
|
|
|
|
[class.uk-width-1-1]="number.width === 'large'">
|
|
|
|
<div class="md-card"
|
|
|
|
[attr.uk-tooltip]="number.description">
|
|
|
|
<div class="md-card-content">
|
|
|
|
<span class="uk-text-muted uk-margin-bottom uk-h5">{{number.name}}</span>
|
|
|
|
<h2 *ngIf="numberResults.get(i)" class="uk-margin-remove">
|
|
|
|
<span>{{numberResults.get(i) | number}}</span>
|
|
|
|
</h2>
|
2019-12-06 14:52:26 +01:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="(activeSubCategory && activeSubCategory.charts.length == 0) && ((activeSubCategory && activeSubCategory.description &&
|
|
|
|
activeSubCategory.description.length > 0) ||
|
|
|
|
(activeCategory && activeCategory.description && activeCategory.description.length > 0) ||
|
|
|
|
(activeTopic && activeTopic.description && activeTopic.description.length > 0))"
|
|
|
|
class="">
|
|
|
|
<div class="">
|
|
|
|
<div class="uk-h5">
|
|
|
|
{{activeSubCategory.description && activeSubCategory.description.length > 0 ? activeSubCategory.description
|
|
|
|
: (activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description :
|
|
|
|
(activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="activeSubCategory"class="uk-grid uk-grid-medium uk-margin-bottom uk-flex uk-flex-bottom "
|
|
|
|
uk-height-match="target: div > div > .chartTitle">
|
|
|
|
<ng-template ngFor [ngForOf]="activeSubCategory.charts" let-chart let-i="index">
|
|
|
|
<div *ngIf="chart.isActive && chart.isPublic && chartsActiveType.get(i)"
|
|
|
|
[class.uk-width-1-3@m]="chart.width === 'small'"
|
|
|
|
[class.uk-width-1-2@m]="chart.width === 'medium'"
|
|
|
|
[class.uk-width-1-1]="chart.width === 'large'">
|
|
|
|
<div class="indicatorBox">
|
2019-12-06 14:52:26 +01:00
|
|
|
|
2019-12-09 11:41:58 +01:00
|
|
|
<h4 class="uk-margin-bottom uk-margin-top chartTitle uk-flex uk-flex-bottom ">
|
|
|
|
<div>{{chart.name + " "}}</div>
|
|
|
|
</h4>
|
|
|
|
<div class="md-card" [attr.uk-tooltip]="chart.description">
|
|
|
|
<div class="md-card-content uk-text-center">
|
|
|
|
<div *ngIf="chart.indicatorPaths.length > 1" class="uk-button-group">
|
|
|
|
<button *ngFor="let indicatorPath of chart.indicatorPaths;"
|
|
|
|
class="uk-button"
|
|
|
|
(click)="setActiveChart(i, indicatorPath.type)"
|
|
|
|
[class.uk-button-secondary]="chartsActiveType.get(i).url === indicatorPath.url">
|
|
|
|
{{indicatorPath.type}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<iframe *ngIf="chartsActiveType.get(i).source !== 'image'"
|
|
|
|
[src]="chartsActiveType.get(i).safeResourceUrl"
|
|
|
|
class="uk-width-1-1 uk-height-medium"></iframe>
|
|
|
|
<!-- {{chartsActiveType.get(i).safeResourceUrl}}-->
|
|
|
|
<!-- <a [href]="chartsActiveType.get(i).safeResourceUrl" target="_blank" > ChartuURL</a>-->
|
|
|
|
<img *ngIf="chartsActiveType.get(i).source === 'image'"
|
|
|
|
[src]="chartsActiveType.get(i).safeResourceUrl"
|
|
|
|
class="uk-width-1-1 uk-height-medium">
|
|
|
|
</div>
|
2019-10-25 15:19:54 +02:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
2019-10-24 09:44:29 +02:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</ng-template>
|
2019-11-28 17:27:49 +01:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
2019-10-24 09:44:29 +02:00
|
|
|
</div>
|
2019-12-09 11:41:58 +01:00
|
|
|
</div>
|
|
|
|
<a *ngIf="stakeholder" id="style_switcher" class="" routerLinkActive="active"
|
|
|
|
[routerLink]="['/admin', this.stakeholder.alias]">
|
|
|
|
<div id="style_switcher_toggle"><i class="material-icons">settings</i></div>
|
|
|
|
</a>
|
2019-10-24 09:44:29 +02:00
|
|
|
</div>
|
2019-12-04 18:01:55 +01:00
|
|
|
|
|
|
|
|