blob: f8998dda9926d464533e3515ad26f0f1120d44ca (
plain)
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
79
80
81
82
83
84
85
86
87
88
|
<!--
########################################################################################
# Copyright (c) 2017 Koren Lev (Cisco Systems), Yaron Yogev (Cisco Systems) and others #
# #
# All rights reserved. This program and the accompanying materials #
# are made available under the terms of the Apache License, Version 2.0 #
# which accompanies this distribution, and is available at #
# http://www.apache.org/licenses/LICENSE-2.0 #
########################################################################################
-->
<template name="ScansList">
<div class="os-scans-list cards white">
<div class="sm-table-section">
<h3>Scans</h3>
<table class="sm-scans-table table">
<thead>
<tr>
<th>
<a class="sm-table-header"
data-is-sortable="true"
data-sort-field="status"
>Status<span><i class="{{ fieldSortClass 'status' }}"></i></span>
</a>
</th>
<th>Log Level</th>
<th>Clear</th>
<th>Scan Only Iventory</th>
<th>Scan Only Links</th>
<th>Scan Only Cliques</th>
<th>Scan Completed</th>
<th>
<a class="sm-table-header"
data-is-sortable="true"
data-sort-field="submit_timestamp"
>Submit Timestamp<span><i class="{{ fieldSortClass 'submit_timestamp' }}"></i></span>
</a>
</th>
<th>
<a class="sm-table-header"
data-is-sortable="true"
data-sort-field="start_timestamp"
>Start Timestamp<span><i class="{{ fieldSortClass 'start_timestamp' }}"></i></span>
</a>
</th>
<th>
<a class="sm-table-header"
data-is-sortable="true"
data-sort-field="end_timestamp"
>End Timestamp<span><i class="{{ fieldSortClass 'end_timestamp' }}"></i></span>
</a>
</th>
<th>Environment</th>
<th>Inventory</th>
<th>Object ID</th>
<th>Action</th>
</tr> </thead>
<tbody>
{{#each scan in scans }}
<tr>
<td>{{ scan.status }}</td>
<td>{{ scan.log_level }}</td>
<td>{{ scan.clear }}</td>
<td>{{ scan.scan_only_inventory }}</td>
<td>{{ scan.scan_only_links }}</td>
<td>{{ scan.scan_only_cliques }}</td>
<td>{{ scan.scan_completed }}</td>
<td>{{ scan.submit_timestamp }}</td>
<td>{{ scan.start_timestamp }}</td>
<td>{{ scan.end_timestamp }}</td>
<td>{{ scan.environment }}</td>
<td>{{ scan.inventory }}</td>
<td>{{ scan.object_id }}</td>
<td><a href="{{pathFor route='scanning-request'
query=(asHash env=scan.environment _id=(idToStr scan._id) action='view') }}"
><i class="cl-action-icon fa fa-eye" area-hidden="true"></i></a>
</td>
</tr>
{{/each }}
</tbody>
</table>
</div>
<div class="sm-pager-section">
{{> Pager (argsPager currentPage amountPerPage totalItems) }}
</div>
</div>
</template>
|