1
|
<div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
|
2
|
<div class="uk-width-1-1@m uk-first-column">
|
3
|
|
4
|
<h1 class="uk-h2">Metrics Admin</h1>
|
5
|
|
6
|
<!-- TOP HELP CONTENT -->
|
7
|
<!-- <help-content #topHelperContent [position]="'top'"
|
8
|
[ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
|
9
|
</help-content>-->
|
10
|
|
11
|
<div class="uk-container uk-margin-medium-top uk-margin-medium-bottom">
|
12
|
<div class="uk-grid">
|
13
|
|
14
|
<!-- LEFT HELP CONTENT -->
|
15
|
<!-- <aside-help-content #leftHelperContent [position]="'left'"
|
16
|
[ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
|
17
|
</aside-help-content>-->
|
18
|
|
19
|
<!-- MIDDLE -->
|
20
|
<div class=" uk-width-expand@m">
|
21
|
|
22
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
|
23
|
<div *ngIf="loadingMessage" class="loading-big">
|
24
|
<div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
|
25
|
{{ loadingMessage }}
|
26
|
</div>
|
27
|
<div class="whiteFilm"></div>
|
28
|
</div>
|
29
|
<div *ngIf="piwiks.length">
|
30
|
<table class="uk-table uk-table-striped uk-table-middle" style="font-size: 12px">
|
31
|
<thead>
|
32
|
<tr>
|
33
|
<th class="uk-text-nowrap">Repository</th>
|
34
|
<th class="uk-text-nowrap">Piwik site</th>
|
35
|
<th class="uk-text-nowrap">Requested on</th>
|
36
|
<th class="uk-text-nowrap">Requestor</th>
|
37
|
<th class="uk-text-nowrap">Validated</th>
|
38
|
<th class="uk-text-nowrap">Actions</th>
|
39
|
</tr>
|
40
|
</thead>
|
41
|
<tbody>
|
42
|
<tr class="el-item" *ngFor="let piwik of piwiks">
|
43
|
<td class="uk-table-shrink">{{ piwik.repositoryName }}<br>(ID: {{ piwik.repositoryId }})</td>
|
44
|
<td class="uk-table-shrink">ID: {{ piwik.siteId }}<br>Authentication Token: {{ piwik.authenticationToken }}</td>
|
45
|
<td class="uk-text-nowrap uk-table-shrink">{{ piwik.creationDate | date : "yyyy-mm-dd" }}</td>
|
46
|
<td class="uk-text-nowrap uk-table-shrink">{{ piwik.requestorName }}<br>{{ piwik.requestorEmail }}</td>
|
47
|
<td class="uk-text-nowrap uk-table-shrink">
|
48
|
<span *ngIf="piwik.validated">YES<br>on {{ piwik.validationDate | date : "yyyy-mm-dd" }}</span>
|
49
|
<span *ngIf="!piwik.validated">NO</span>
|
50
|
</td>
|
51
|
<td class="uk-text-nowrap uk-table-shrink">
|
52
|
<button id="{{ piwik.repositoryId }}" *ngIf="!piwik.validated" class="uk-button uk-button-primary validate" (click)="confirmApproval(piwik.repositoryId)">Validate</button>
|
53
|
</td>
|
54
|
</tr>
|
55
|
</tbody>
|
56
|
</table>
|
57
|
</div>
|
58
|
|
59
|
</div>
|
60
|
|
61
|
<!-- RIGHT HELP CONTENT -->
|
62
|
<aside-help-content #rightHelperContent [position]="'right'"
|
63
|
[ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
|
64
|
</aside-help-content>
|
65
|
|
66
|
</div>
|
67
|
</div>
|
68
|
|
69
|
|
70
|
<!-- BOTTOM HELP CONTENT -->
|
71
|
<help-content #bottomHelperContent [position]="'bottom'"
|
72
|
[ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
|
73
|
</help-content>
|
74
|
|
75
|
|
76
|
</div>
|
77
|
</div>
|
78
|
|
79
|
|
80
|
<confirmation-dialog #confirmApprovalModal [title]="modalTitle" [isModalShown]="isModalShown"
|
81
|
[confirmActionButton]="modalButton" (emitObject)="confirmedApproval($event)">
|
82
|
Are you sure you want to validate the selected piwik site(s)?
|
83
|
</confirmation-dialog>
|
84
|
|
85
|
<!-- *** OLD HTML ***
|
86
|
|
87
|
<div class="uk-grid uk-grid-stack">
|
88
|
<div class="uk-width-expand@m uk-first-column">
|
89
|
<div class="uk-margin-medium-bottom">
|
90
|
<h1 class="uk-article-title">Metrics Admin</h1>
|
91
|
</div>
|
92
|
<div class="">
|
93
|
<div class="uk-width-1-1@m uk-first-column uk-margin-medium-bottom">
|
94
|
<div class="uk-overflow-auto uk-scrollspy-inview uk-animation-slide-top-medium">
|
95
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
|
96
|
<div *ngIf="loadingMessage" class="loading-big">
|
97
|
<div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
|
98
|
{{ loadingMessage }}
|
99
|
</div>
|
100
|
<div class="whiteFilm"></div>
|
101
|
</div>
|
102
|
<div>
|
103
|
<table class="uk-table uk-table-striped uk-table-middle" style="font-size: 12px">
|
104
|
<thead>
|
105
|
<tr>
|
106
|
<th class="uk-text-nowrap">Repository</th>
|
107
|
<th class="uk-text-nowrap">Piwik site</th>
|
108
|
<th class="uk-text-nowrap">Requested on</th>
|
109
|
<th class="uk-text-nowrap">Requestor</th>
|
110
|
<th class="uk-text-nowrap">Validated</th>
|
111
|
<th class="uk-text-nowrap">Actions</th>
|
112
|
</tr>
|
113
|
</thead>
|
114
|
<tbody>
|
115
|
<tr class="el-item" *ngFor="let piwik of piwiks">
|
116
|
<td class="uk-table-shrink">{{ piwik.repositoryName }}<br>(ID: {{ piwik.repositoryId }})</td>
|
117
|
<td class="uk-table-shrink">ID: {{ piwik.siteId }}<br>Authentication Token: {{ piwik.authenticationToken }}</td>
|
118
|
<td class="uk-text-nowrap uk-table-shrink">{{ piwik.creationDate | date : "yyyy-mm-dd" }}</td>
|
119
|
<td class="uk-text-nowrap uk-table-shrink">{{ piwik.requestorName }}<br>{{ piwik.requestorEmail }}</td>
|
120
|
<td class="uk-text-nowrap uk-table-shrink">
|
121
|
<span *ngIf="piwik.validated">YES<br>on {{ piwik.validationDate | date : "yyyy-mm-dd" }}</span>
|
122
|
<span *ngIf="!piwik.validated">NO</span>
|
123
|
</td>
|
124
|
<td class="uk-text-nowrap uk-table-shrink">
|
125
|
<button id="{{ piwik.repositoryId }}" *ngIf="!piwik.validated" class="uk-button uk-button-primary validate" (click)="confirmApproval(piwik.repositoryId)">Validate</button>
|
126
|
</td>
|
127
|
</tr>
|
128
|
</tbody>
|
129
|
</table>
|
130
|
</div>
|
131
|
</div>
|
132
|
</div>
|
133
|
</div>
|
134
|
</div>
|
135
|
</div>
|
136
|
-->
|