1
|
<div class="uk-grid uk-grid-stack">
|
2
|
<div class="uk-width-expand@m uk-first-column">
|
3
|
<div class="uk-margin-medium-bottom">
|
4
|
<h1 class="uk-article-title">Metrics Admin</h1>
|
5
|
</div>
|
6
|
<div class="">
|
7
|
<div class="uk-alert uk-alert-danger" style="display:none;" aria-hidden="true"></div>
|
8
|
<div class="uk-width-1-1@m uk-first-column uk-margin-medium-bottom">
|
9
|
<div class="uk-overflow-auto uk-scrollspy-inview uk-animation-slide-top-medium">
|
10
|
<div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
|
11
|
<div *ngIf="!showSpinner">
|
12
|
<table class="uk-table uk-table-striped uk-table-middle" style="font-size: 12px">
|
13
|
<thead>
|
14
|
<tr>
|
15
|
<th class="uk-text-nowrap">Repository</th>
|
16
|
<th class="uk-text-nowrap">Piwik site</th>
|
17
|
<th class="uk-text-nowrap">Requested on</th>
|
18
|
<th class="uk-text-nowrap">Requestor</th>
|
19
|
<th class="uk-text-nowrap">Validated</th>
|
20
|
<th class="uk-text-nowrap">Actions</th>
|
21
|
</tr>
|
22
|
</thead>
|
23
|
<tbody>
|
24
|
<tr class="el-item" *ngFor="let piwik of piwiks">
|
25
|
<td class="uk-table-shrink">{{ piwik.repositoryName }}<br>(ID: {{ piwik.repositoryId }})</td>
|
26
|
<td class="uk-table-shrink">ID: {{ piwik.siteId }}<br>Authentication Token: {{ piwik.authenticationToken }}</td>
|
27
|
<td class="uk-text-nowrap uk-table-shrink">{{ piwik.creationDate | date : "yyyy-mm-dd" }}</td>
|
28
|
<td class="uk-text-nowrap uk-table-shrink">{{ piwik.requestorName }}<br>{{ piwik.requestorEmail }}</td>
|
29
|
<td class="uk-text-nowrap uk-table-shrink">
|
30
|
<span *ngIf="piwik.validated">YES<br>on {{ piwik.validationDate | date : "yyyy-mm-dd" }}</span>
|
31
|
<span *ngIf="!piwik.validated">NO</span>
|
32
|
</td>
|
33
|
<td class="uk-text-nowrap uk-table-shrink">
|
34
|
<button id="{{ piwik.repositoryId }}" *ngIf="!piwik.validated" class="uk-button uk-button-primary validate" (click)="confirmApproval(piwik.repositoryId)">Validate</button>
|
35
|
</td>
|
36
|
</tr>
|
37
|
</tbody>
|
38
|
</table>
|
39
|
</div>
|
40
|
<div style="text-align: center; margin-top: 100px;" *ngIf="showSpinner">
|
41
|
<span>{{ loadingMessage }}</span><br>
|
42
|
<img src="/assets/imgs/loader-big.gif">
|
43
|
</div>
|
44
|
</div>
|
45
|
</div>
|
46
|
</div>
|
47
|
</div>
|
48
|
</div>
|
49
|
|
50
|
<confirmation-dialog #confirmApprovalModal [title]="modalTitle" [isModalShown]="isModalShown"
|
51
|
[confirmActionButton]="modalButton" (emmitObject)="confirmedApproval($event)">
|
52
|
Are you sure you want to validate the selected piwik site(s)?
|
53
|
</confirmation-dialog>
|