aboutsummaryrefslogtreecommitdiffstats
path: root/ui/imports/ui/components/scans-list/scans-list.html
diff options
context:
space:
mode:
Diffstat (limited to 'ui/imports/ui/components/scans-list/scans-list.html')
-rw-r--r--ui/imports/ui/components/scans-list/scans-list.html88
1 files changed, 88 insertions, 0 deletions
diff --git a/ui/imports/ui/components/scans-list/scans-list.html b/ui/imports/ui/components/scans-list/scans-list.html
new file mode 100644
index 0000000..f8998dd
--- /dev/null
+++ b/ui/imports/ui/components/scans-list/scans-list.html
@@ -0,0 +1,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>