File size: 1,725 Bytes
83b1ba1
 
 
 
 
9c052d8
 
83b1ba1
9c052d8
d463ab2
9c052d8
 
 
 
 
 
 
d463ab2
9c052d8
 
 
 
75b3e95
9c052d8
75b3e95
9c052d8
 
d463ab2
9c052d8
 
 
 
 
 
 
 
 
83b1ba1
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Parsed Results - {{ filename }}</title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100 min-h-screen p-8">
    <div class="max-w-5xl mx-auto bg-white p-6 rounded-lg shadow-lg">
        <h1 class="text-2xl font-bold text-gray-800 mb-4">Parsed Results: {{ filename }}</h1>
        <table class="w-full border-collapse">
            <thead>
                <tr class="bg-gray-200">
                    <th class="p-3 text-left">Part</th>
                    <th class="p-3 text-left">Category</th>
                    <th class="p-3 text-left">Location</th>
                    <th class="p-3 text-left">Vector</th>
                    <th class="p-3 text-left">Source</th>
                </tr>
            </thead>
            <tbody>
                {% for part in parts %}
                <tr class="border-b hover:bg-gray-50">
                    <td class="p-3">{{ part.index }}</td>
                    <td class="p-3">{{ part.category }}</td>
                    <td class="p-3">Lines {{ part.location[0] }} to {{ part.location[1] }}</td>
                    <td class="p-3">{{ part.vector|join(', ') }}</td>
                    <td class="p-3">
                        <pre class="text-sm" style="margin-left: {{ part.level * 1.5 }}rem;">{{ part.source }}</pre>
                    </td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
        <a href="/" class="mt-4 inline-block bg-blue-600 text-white p-2 rounded-lg hover:bg-blue-700 transition">Back</a>
    </div>
</body>
</html>