forked from camptocamp/terraboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
78 lines (78 loc) · 2.92 KB
/
main.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<div class="row">
<div class="overview-chart col-xs-6 col-sm-3 col-md-3 col-md-offset-1">
<canvas height="200px"
id="chart-pie-resource-types"
class="chart chart-pie"
chart-data="pieResourceTypesData"
chart-labels="pieResourceTypesLabels"
chart-options="pieResourceTypesOptions"
chart-click="searchType">
</canvas>
<h4>Resource types</h4>
</div>
<div class="overview-chart col-xs-6 col-sm-4">
<canvas height="150px"
id="chart-pie-terraform-versions"
class="chart chart-pie"
chart-data="pieTfVersionsData"
chart-labels="pieTfVersionsLabels"
chart-options="pieTfVersionsOptions"
chart-click="searchTfVersion">
</canvas>
<h4>Terraform versions</h4>
</div>
<div class="overview-chart col-xs-6 col-sm-3">
<canvas height="200px"
id="chart-pie-ls"
class="chart chart-pie"
chart-data="pieLockedStatesData"
chart-labels="pieLockedStatesLabels"
chart-options="pieLockedStatesOptions">
</canvas>
<h4>States locked</h4>
</div>
</div>
<hr />
<div id="results" class="row">
<label id="navigate" ng-show="results">
<span class="glyphicon glyphicon-triangle-left" ng-click="getStats(prevPage)" ng-show="prevPage"></span> {{startItems}}-{{itemsInPage}}/{{results.total}} <span class="glyphicon glyphicon-triangle-right" ng-click="getStats(nextPage)" ng-show="nextPage"></span>
</label>
<table class="table table-border table-striped">
<thead>
<th></th> <!-- lock -->
<th></th> <!-- link -->
<th>
Path
</th>
<th>
TF Version
</th>
<th>
Serial
</th>
<th>
Time
</th>
<th>
Resources
</th>
<th>
Activity
</th>
</thead>
<tbody>
<tr ng-repeat="r in results.states">
<td><span ng-if="isLocked(r.path)" ng-init="lock=locks[r.path]" class="glyphicon glyphicon-lock" title="Locked by {{lock.Who}} on {{lock.Created | date:'medium'}} ({{lock.Operation}})"></span></td>
<td><a href="state/{{r.path}}?versionid={{r.version_id}}"><span class="glyphicon glyphicon-link" aria-hidden="true"></span></a></td>
<td>{{r.path}}</td>
<td>{{r.terraform_version}}</td>
<td>{{r.serial}}</td>
<td>{{r.last_modified | date:'medium'}}</td>
<td>{{r.resource_count}}</td>
<td ng-init="getActivity($index, r.path)">
<sparklinechart path="{{r.path}}" data="{{r.activity}}"></sparklinechart>
</td>
</tr>
</tbody>
</table>
</div>