-
-
Notifications
You must be signed in to change notification settings - Fork 796
Expand file tree
/
Copy pathtemplate.html
More file actions
218 lines (213 loc) · 6.89 KB
/
Copy pathtemplate.html
File metadata and controls
218 lines (213 loc) · 6.89 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html lang="en">
{#
<!--
#
# Copyright (c) 2015 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use this software except in compliance with the License.
# You may obtain a copy of the License at: http://apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software distributed
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
#
# When you publish or redistribute any data created with ScanCode or any ScanCode
# derivative work, you must accompany this data with the following acknowledgment:
#
# Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
# OR CONDITIONS OF ANY KIND, either express or implied. No content created from
# ScanCode should be considered or used as legal advice. Consult an Attorney
# for any legal advice.
# ScanCode is a free software code scanning tool from nexB Inc. and others.
# Visit https://github.com/nexB/scancode-toolkit/ for support and download.
-->
#}
<head>
<meta charset="utf-8">
<title>ScanCode results</title>
<style type="text/css">
table {
border-collapse:collapse;
border: 1px solid gray;
margin-bottom: 20px;
width: 100%;
}
td {
padding: 5px 5px;
border-style: solid;
border-width: 1px;
overflow: hidden;
}
th {
padding:10px 5px;
border-style: solid;
border-width: 1px;
overflow: hidden;
border-color: gray;
color: #fff;
background-color: #5E81B7;
}
tr:nth-child(even) { background-color:#FFFFFF; }
tr:nth-child(odd) { background-color:#F9F9F9; }
tr:hover { background-color: #EEEEEE; }
* {
font-family: Helvetica, Arial, sans-serif;
font-weight: normal;
font-size: 12px;
}
</style>
</head>
<body>
{% if files.license_copyright %}
<table>
<caption>Copyrights and Licenses Information</caption>
<thead>
<tr>
<th>path</th>
<th>start</th>
<th>end</th>
<th>what</th>
<th>value</th>
</tr>
</thead>
<tbody>
{% for path, data in files.license_copyright.items() %}
{% for row in data %}
<tr>
<td>{{ path }}</td>
<td>{{ row.start }}</td>
<td>{{ row.end }}</td>
<td>{{ row.what }}</td>
{% if row.what == 'license' %}
<td><a href="#license_{{ row.value }}">{{ row.value }}</a></td>
{% else %}
<td>{{ row.value|escape }}</td>
{% endif %}
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
{% endif %}
{% if files.infos %}
<table>
<caption>File Information</caption>
<thead>
<tr>
<th>path</th>
<th>type</th>
<th>name</th>
<th>extension</th>
<th>date</th>
<th>size</th>
<th>sha1</th>
<th>md5</th>
<th>files_count</th>
<th>mime_type</th>
<th>file_type</th>
<th>programming_language</th>
<th>is_binary</th>
<th>is_text</th>
<th>is_archive</th>
<th>is_media</th>
<th>is_source</th>
<th>is_script</th>
</tr>
</thead>
<tbody>
{% for path, row in files.infos.items() %}
<tr>
<td>{{ path }}</td>
<td>{{ row.type }}</td>
<td>{{ row.name }}</td>
<td>{{ row.extension }}</td>
<td>{{ row.date }}</td>
<td>{{ row.size }}</td>
<td>{{ row.sha1 }}</td>
<td>{{ row.md5 }}</td>
<td>{{ row.file_count }}</td>
<td>{{ row.mime_type }}</td>
<td>{{ row.file_type }}</td>
<td>{{ row.programming_language }}</td>
<td>{{ row.is_binary }}</td>
<td>{{ row.is_text }}</td>
<td>{{ row.is_archive }}</td>
<td>{{ row.is_media }}</td>
<td>{{ row.is_source }}</td>
<td>{{ row.is_script }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if files.packages %}
<table>
<caption>Package Information</caption>
<thead>
<tr>
<th>path</th>
<th>type</th>
<th>packaging</th>
<th>primary_language</th>
</tr>
</thead>
<tbody>
{% for path, data in files.packages.items() %}
{% for row in data %}
<tr>
<td>{{ path }}</td>
<td>{{ row.type }}</td>
<td>{{ row.packaging }}</td>
<td>{{ row.primary_language }}</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
{% endif %}
{% if licenses %}
<table>
<caption>Licenses</caption>
<thead>
<tr>
<th>key</th>
<th>short_name</th>
<th>category</th>
<th>owner</th>
<th>dejacode_url</th>
<th>homepage_url</th>
<th>text_url</th>
<th>spdx_license_key</th>
<th>spdx_url</th>
</tr>
</thead>
<tbody>
{% for key, license in licenses.items() %}
<tr id="license_{{ license.key }}">
<td>{{ license.key }}</td>
<td>{{ license.short_name }}</td>
<td>{{ license.category }}</td>
<td>{{ license.owner }}</td>
<td>{{ license.dejacode_url|urlize(target='_blank') }}</td>
<td>{{ license.homepage_url|urlize(target='_blank') }}</td>
<td>{{ license.text_url|urlize(target='_blank') }}</td>
<td>{{ license.spdx_license_key }}</td>
<td>{{ license.spdx_url|urlize(target='_blank') }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</body>
<footer>
<p>Generated with ScanCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
No content created from ScanCode should be considered or used as legal advice. Consult an Attorney for any legal advice.
ScanCode is a free software code scanning tool from nexB Inc. and others.
Visit <a href="http://www.nexb.com/" target="_blank">http://www.nexb.com</a> and <a href="https://github.com/nexB/scancode-toolkit/" target="_blank">https://github.com/nexB/scancode-toolkit/</a> for support and download.
</footer>
</html>