broadfield-dev commited on
Commit
9c052d8
·
verified ·
1 Parent(s): 6c36389

Update templates/results.html

Browse files
Files changed (1) hide show
  1. 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 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>
 
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>