-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathiostemplate.html
144 lines (139 loc) · 6.19 KB
/
iostemplate.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<style>
html, body {height: 100%;}
.container {height: 100% }
pre {
overflow-x:auto;
}
table {
table-layout: fixed;
width: 100%;
}
.table > thead > tr > th
{
border-top: 1px solid #5bc0de;
border-bottom: 1px solid #5bc0de;
}
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
border-bottom: 1px solid #5bc0de;
}
</style>
</head>
<body>
<div class="container">
<br>
<h1>CheckKarlMarx Report</h1>
<br>
<div class="card border-info mb-3" id="card">
<div class="card-header" id="packageInfo">File: <b>{{ result.filename }}</b> Package Id: <b>{{ result.packageId }}</b></div>
<div class="card-body text-info">
<p class="card-text" id="os">OS: <b>{{ result.os }}</b> Version: <b>{{ result.packageVersion }}</b> Code Version: <b>{{ result.packageCodeVersion }}</b></p>
<p class="card-text" id="firebase">Firebase URL: <b>{{ result.firebaseDatabaseUrl }}</b>
<p class="cart-text" id="summary">Summary: <b>Major: {{ result.summary['Major'] }} Normal: {{ result.summary['Normal'] }} Minor: {{ result.summary['Minor'] }} Info: {{ result.summary['Info'] }}</b></p>
<p class="card-text" id="time">Start Time: <b>{{ result.startTime.strftime("%d/%m/%Y, %H:%M:%S") }}</b> Time: <b>{{ result.time }}</b></p>
</div>
</div>
<br>
<ul class="nav nav-tabs" id="nav1">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#network">Network</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#urls">URLs</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#keys">Keys</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade show active" id="network">
<table class="table">
<thead>
<tr>
<th style='width: 2%'>#</th>
<th style='width: 18%'>Name</th>
<th style='width: 7%'>Severity</th>
<th style='width: 5%'>Found</th>
<th style='width: 44%'>Proofs</th>
<th style='width: 24%'>Info</th>
</tr>
</thead>
<tbody>
{% for check in result.checks['network'] %}
<tr>
<td> {{ loop.index }} </td>
<td> {{ check.name }} </td>
<td> {{ check.severity }} </td>
<td> {{ check.found }} </td>
<td><pre> {{ check.proofs|safe }} </pre></td>
<td> {{ check.info|safe }} </td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="tab-pane fade" id="urls">
<table class="table">
<thead>
<tr>
<th style='width: 2%'>#</th>
<th style='width: 18%'>Name</th>
<th style='width: 7%'>Severity</th>
<th style='width: 5%'>Found</th>
<th style='width: 44%'>Proofs</th>
<th style='width: 24%'>Info</th>
</tr>
</thead>
<tbody>
{% for check in result.checks['urls'] %}
<tr>
<td> {{ loop.index }} </td>
<td> {{ check.name }} </td>
<td> {{ check.severity }} </td>
<td> {{ check.found }} </td>
<td><pre> {{ check.proofs|safe }} </pre></td>
<td> {{ check.info|safe }} </td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="tab-pane fade" id="keys">
<table class="table">
<thead>
<tr>
<th style='width: 2%'>#</th>
<th style='width: 18%'>Name</th>
<th style='width: 7%'>Severity</th>
<th style='width: 5%'>Found</th>
<th style='width: 44%'>Proofs</th>
<th style='width: 24%'>Info</th>
</tr>
</thead>
<tbody>
{% for check in result.checks['keys'] %}
<tr>
<td> {{ loop.index }} </td>
<td> {{ check.name }} </td>
<td> {{ check.severity }} </td>
<td> {{ check.found }} </td>
<td><pre> {{ check.proofs|safe }} </pre></td>
<td> {{ check.info|safe }} </td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>