1
|
<!--disable_transitions -->
|
2
|
<div class="double-header stakeholderPage">
|
3
|
<div class="">
|
4
|
<div id="header_menu" class="uk-width-1-1">
|
5
|
<nav class="uk-navbar">
|
6
|
|
7
|
<div class="uk-navbar-left">
|
8
|
<img class="large-badge"
|
9
|
src="assets/theme-assets/prototype_flag.svg"
|
10
|
alt="BETA">
|
11
|
<a *ngIf="stakeholder" class="uk-logo uk-navbar-item ng-star-inserted uk-link uk-margin-small-top"
|
12
|
routerlink="/"
|
13
|
routerlinkactive="uk-link" href="/">
|
14
|
<img *ngIf="stakeholder.logoUrl" [src]="stakeholder.logoUrl" class="uk-responsive-height">
|
15
|
<div *ngIf="!stakeholder.logoUrl">
|
16
|
{{stakeholder.index_name}}
|
17
|
</div>
|
18
|
</a>
|
19
|
<div class="uk-margin-large-left uk-width-medium ng-star-inserted">
|
20
|
<div class="">
|
21
|
<!-- <div dashboard-input label="Search for..." [formInput]="keyword"></div>-->
|
22
|
</div>
|
23
|
</div>
|
24
|
</div>
|
25
|
|
26
|
<div *ngIf="stakeholder && status === errorCodes.DONE && activeTopic" class="uk-navbar-right uk-margin-right">
|
27
|
<!--<ul class="uk-navbar-nav">
|
28
|
<li class="uk-active">
|
29
|
<a class="uk-margin-remove-bottom "><span>Monitor</span></a>
|
30
|
</li>
|
31
|
<li>
|
32
|
<a class="uk-margin-remove-bottom ">Search</a>
|
33
|
</li>
|
34
|
<li>
|
35
|
<a class="uk-margin-remove-bottom ">Help</a>
|
36
|
</li>
|
37
|
|
38
|
</ul>-->
|
39
|
</div>
|
40
|
</nav>
|
41
|
</div>
|
42
|
</div>
|
43
|
<div class="sidebar_main_swipe header_full" [class.sidebar_main_active]="open">
|
44
|
<div id="header_main">
|
45
|
<nav class="uk-light">
|
46
|
<div class="main_logo_top">
|
47
|
<div *ngIf="stakeholder && stakeholder.index_name" class=" ">
|
48
|
<div class="uk-text-bold uk-h4 uk-margin-remove-bottom">{{stakeholder.index_name}}</div>
|
49
|
<div class="uk-h5 uk-margin-remove">Monitor Dashboard</div>
|
50
|
</div>
|
51
|
</div>
|
52
|
<a id="sidebar_main_toggle" (click)="toggleOpen()" class="sSwitch sSwitch_left uk-margin-left">
|
53
|
<span class="sSwitchIcon"></span>
|
54
|
</a>
|
55
|
<div *ngIf="stakeholder && status === errorCodes.DONE && activeTopic" class="uk-navbar-center">
|
56
|
<ul class="uk-navbar-nav">
|
57
|
<ng-template ngFor [ngForOf]="stakeholder.topics" let-topic let-i="index">
|
58
|
<li *ngIf="topic.isPublic && topic.isActive"
|
59
|
[ngClass]="(topic.alias === activeTopic.alias)?'uk-active':''">
|
60
|
<a (click)="navigateTo(stakeholder.alias, topic.alias)" class="uk-margin-remove-bottom uk-h4"
|
61
|
><span>{{topic.name}}</span></a>
|
62
|
</li>
|
63
|
</ng-template>
|
64
|
</ul>
|
65
|
</div>
|
66
|
</nav>
|
67
|
</div>
|
68
|
<dashboard-sidebar *ngIf="sideBar && stakeholder" [items]="sideBar.items"
|
69
|
[activeItem]="activeCategory?activeCategory.alias:null"
|
70
|
[activeSubItem]="activeSubCategory?activeSubCategory.alias:null" [showHeader]=false
|
71
|
></dashboard-sidebar>
|
72
|
<div *ngIf="activeSubCategory"
|
73
|
id="page_content" click-outside-or-esc targetId="page_content" [escClose]="false"
|
74
|
(clickOutside)="toggleOpen($event)">
|
75
|
<div id="page_content_inner">
|
76
|
<!-- <div>
|
77
|
Filters
|
78
|
<input class="uk-input uk-form-width-medium" placeholder="Funding Stream" type="text" name="fund_level_0"
|
79
|
[(ngModel)]="fundingL0">
|
80
|
|
81
|
<input class="uk-input uk-form-width-medium" placeholder="Start year" type="text" name="start_year"
|
82
|
[(ngModel)]="startYear">
|
83
|
<input class="uk-input uk-form-width-medium" placeholder="End year" type="text" name="end_year"
|
84
|
[(ngModel)]="endYear">
|
85
|
<button class="uk-button uk-button-primary" (click)="setIndicators()">Apply</button>
|
86
|
</div>-->
|
87
|
<h4 *ngIf="activeSubCategory.numbers.length > 0 ||activeSubCategory.charts.length > 0; else noIndicators "
|
88
|
class="uk-margin uk-margin-top uk-text-bold">Indicators
|
89
|
</h4>
|
90
|
<ng-template #noIndicators>
|
91
|
|
92
|
<div class="">
|
93
|
<div class="">
|
94
|
<div class="uk-h3">
|
95
|
No indicators available yet. Stay tuned!
|
96
|
</div>
|
97
|
</div>
|
98
|
</div>
|
99
|
<div *ngIf="activeSubCategory.description && activeSubCategory.description.length > 0 ||
|
100
|
activeCategory.description && activeCategory.description.length > 0 ||
|
101
|
activeTopic.description && activeTopic.description.length > 0"
|
102
|
class="">
|
103
|
<div class="">
|
104
|
<div class="uk-h5">
|
105
|
{{activeSubCategory.description && activeSubCategory.description.length > 0 ? activeSubCategory.description
|
106
|
:(activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description :
|
107
|
(activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))}}
|
108
|
</div>
|
109
|
</div>
|
110
|
</div>
|
111
|
</ng-template>
|
112
|
<div class="uk-grid uk-grid-medium uk-margin-bottom" uk-height-match="target: div.md-card">
|
113
|
|
114
|
<ng-template ngFor [ngForOf]="activeSubCategory.numbers" let-number let-i="index">
|
115
|
<div *ngIf="number.isActive && number.isPublic"
|
116
|
[class.uk-width-1-3@m]="number.width === 'small'"
|
117
|
[class.uk-width-1-2@m]="number.width === 'medium'"
|
118
|
[class.uk-width-1-1]="number.width === 'large'">
|
119
|
<div class="md-card"
|
120
|
[attr.uk-tooltip]="number.description">
|
121
|
<div class="md-card-content">
|
122
|
<span class="uk-text-muted uk-margin-bottom uk-h5">{{number.name}}</span>
|
123
|
<h2 *ngIf="numberResults.get(i)" class="uk-margin-remove">
|
124
|
<span>{{numberResults.get(i) | number}}</span>
|
125
|
</h2>
|
126
|
</div>
|
127
|
</div>
|
128
|
</div>
|
129
|
</ng-template>
|
130
|
</div>
|
131
|
<div class="uk-grid uk-grid-medium uk-margin-bottom uk-flex uk-flex-bottom "
|
132
|
uk-height-match="target: div > div > .chartTitle">
|
133
|
<ng-template ngFor [ngForOf]="activeSubCategory.charts" let-chart let-i="index">
|
134
|
<div *ngIf="chart.isActive && chart.isPublic && chartsActiveType.get(i)"
|
135
|
[class.uk-width-1-3@m]="chart.width === 'small'"
|
136
|
[class.uk-width-1-2@m]="chart.width === 'medium'"
|
137
|
[class.uk-width-1-1]="chart.width === 'large'">
|
138
|
<div class="indicatorBox">
|
139
|
|
140
|
<h4 class="uk-margin-bottom uk-margin-top chartTitle uk-flex uk-flex-bottom ">
|
141
|
<div>{{chart.name + " "}}</div>
|
142
|
</h4>
|
143
|
<div class="md-card" [attr.uk-tooltip]="chart.description">
|
144
|
<div class="md-card-content uk-text-center">
|
145
|
<div *ngIf="chart.indicatorPaths.length > 1" class="uk-button-group">
|
146
|
<button *ngFor="let indicatorPath of chart.indicatorPaths;"
|
147
|
class="uk-button"
|
148
|
(click)="setActiveChart(i, indicatorPath.type)"
|
149
|
[class.uk-button-secondary]="chartsActiveType.get(i).url === indicatorPath.url">
|
150
|
{{indicatorPath.type}}
|
151
|
</button>
|
152
|
</div>
|
153
|
<iframe *ngIf="chartsActiveType.get(i).source !== 'image'"
|
154
|
[src]="chartsActiveType.get(i).safeResourceUrl"
|
155
|
class="uk-width-1-1 uk-height-medium"></iframe>
|
156
|
<!-- {{chartsActiveType.get(i).safeResourceUrl}}-->
|
157
|
<img *ngIf="chartsActiveType.get(i).source === 'image'"
|
158
|
[src]="chartsActiveType.get(i).safeResourceUrl"
|
159
|
class="uk-width-1-1 uk-height-medium">
|
160
|
</div>
|
161
|
</div>
|
162
|
</div>
|
163
|
</div>
|
164
|
</ng-template>
|
165
|
</div>
|
166
|
</div>
|
167
|
</div>
|
168
|
</div>
|
169
|
<a id="style_switcher" class="" routerLinkActive="active"
|
170
|
[routerLink]="['/admin', this.stakeholder.alias]">
|
171
|
<div id="style_switcher_toggle"><i class="material-icons">settings</i></div>
|
172
|
</a>
|
173
|
</div>
|
174
|
|
175
|
|