Spaces:
Running
Running
Create templates/results.html
Browse files- templates/results.html +41 -0
templates/results.html
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Parsed Python File</title>
|
7 |
+
<style>
|
8 |
+
table {
|
9 |
+
border-collapse: collapse;
|
10 |
+
width: 100%;
|
11 |
+
}
|
12 |
+
th, td {
|
13 |
+
border: 1px solid black;
|
14 |
+
padding: 8px;
|
15 |
+
text-align: left;
|
16 |
+
}
|
17 |
+
th {
|
18 |
+
background-color: #f2f2f2;
|
19 |
+
}
|
20 |
+
</style>
|
21 |
+
</head>
|
22 |
+
<body>
|
23 |
+
<h1>Parsed Python File</h1>
|
24 |
+
<table>
|
25 |
+
<tr>
|
26 |
+
<th>Part</th>
|
27 |
+
<th>Category</th>
|
28 |
+
<th>Location</th>
|
29 |
+
<th>Source</th>
|
30 |
+
</tr>
|
31 |
+
{% for i, part in enumerate(parts, 1) %}
|
32 |
+
<tr>
|
33 |
+
<td>{{ i }}</td>
|
34 |
+
<td>{{ part.category }}</td>
|
35 |
+
<td>Lines {{ part.location[0] }} to {{ part.location[1] }}</td>
|
36 |
+
<td><pre>{{ part.source }}</pre></td>
|
37 |
+
</tr>
|
38 |
+
{% endfor %}
|
39 |
+
</table>
|
40 |
+
</body>
|
41 |
+
</html>
|