Spaces:
Sleeping
Sleeping
<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-4xl 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">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"> | |
<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> |