Spaces:
Sleeping
Sleeping
Update templates/results.html
Browse files- templates/results.html +29 -33
templates/results.html
CHANGED
@@ -3,39 +3,35 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title>Parsed
|
7 |
-
<
|
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 |
-
<
|
24 |
-
|
25 |
-
<
|
26 |
-
<
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
<
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
</body>
|
41 |
</html>
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Parsed Results - {{ filename }}</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
</head>
|
9 |
+
<body class="bg-gray-100 min-h-screen p-8">
|
10 |
+
<div class="max-w-4xl mx-auto bg-white p-6 rounded-lg shadow-lg">
|
11 |
+
<h1 class="text-2xl font-bold text-gray-800 mb-4">Parsed Results: {{ filename }}</h1>
|
12 |
+
<table class="w-full border-collapse">
|
13 |
+
<thead>
|
14 |
+
<tr class="bg-gray-200">
|
15 |
+
<th class="p-3 text-left">Part</th>
|
16 |
+
<th class="p-3 text-left">Category</th>
|
17 |
+
<th class="p-3 text-left">Location</th>
|
18 |
+
<th class="p-3 text-left">Source</th>
|
19 |
+
</tr>
|
20 |
+
</thead>
|
21 |
+
<tbody>
|
22 |
+
{% for i, part in enumerate(parts, 1) %}
|
23 |
+
<tr class="border-b hover:bg-gray-50">
|
24 |
+
<td class="p-3">{{ i }}</td>
|
25 |
+
<td class="p-3">{{ part.category }}</td>
|
26 |
+
<td class="p-3">Lines {{ part.location[0] }} to {{ part.location[1] }}</td>
|
27 |
+
<td class="p-3">
|
28 |
+
<pre class="text-sm" style="margin-left: {{ part.level * 1.5 }}rem;">{{ part.source }}</pre>
|
29 |
+
</td>
|
30 |
+
</tr>
|
31 |
+
{% endfor %}
|
32 |
+
</tbody>
|
33 |
+
</table>
|
34 |
+
<a href="/" class="mt-4 inline-block bg-blue-600 text-white p-2 rounded-lg hover:bg-blue-700 transition">Back</a>
|
35 |
+
</div>
|
36 |
</body>
|
37 |
</html>
|