FossilRepo

fossilrepo / templates / fossil / partials / ticket_table.html
1
<div id="ticket-table">
2
<div class="overflow-x-auto rounded-lg border border-gray-700 bg-gray-800 shadow-sm">
3
<table class="min-w-full divide-y divide-gray-700">
4
<thead class="bg-gray-900/80">
5
<tr>
6
<th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Title</th>
7
<th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400 w-24">Status</th>
8
<th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400 w-28">Type</th>
9
<th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400 w-20">Priority</th>
10
<th class="px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-gray-400 w-36">Created</th>
11
</tr>
12
</thead>
13
<tbody class="divide-y divide-gray-700/70 bg-gray-800">
14
{% for ticket in tickets %}
15
<tr class="hover:bg-gray-700/40 transition-colors">
16
<td class="px-4 py-3">
17
<a href="{% url 'fossil:ticket_detail' slug=project.slug ticket_uuid=ticket.uuid %}"
18
class="text-brand-light hover:text-brand font-medium text-sm">
19
{{ ticket.title|default:"(untitled)" }}
20
</a>
21
<div class="mt-0.5">
22
<a href="{% url 'fossil:ticket_detail' slug=project.slug ticket_uuid=ticket.uuid %}"
23
class="text-xs font-mono text-gray-600 hover:text-brand-light">{{ ticket.uuid|truncatechars:12 }}</a>
24
</div>
25
</td>
26
<td class="px-4 py-3 whitespace-nowrap">
27
{% if ticket.status == "Open" %}
28
<span class="inline-flex rounded-full bg-green-900/50 px-2 text-xs font-semibold leading-5 text-green-300">{{ ticket.status }}</span>
29
{% elif ticket.status == "Closed" or ticket.status == "Fixed" %}
30
<span class="inline-flex rounded-full bg-gray-700 px-2 text-xs font-semibold leading-5 text-gray-300">{{ ticket.status }}</span>
31
{% else %}
32
<span class="inline-flex rounded-full bg-yellow-900/50 px-2 text-xs font-semibold leading-5 text-yellow-300">{{ ticket.status }}</span>
33
{% endif %}
34
</td>
35
<td class="px-4 py-3 whitespace-nowrap text-xs text-gray-400">{{ ticket.type|default:"—" }}</td>
36
<td class="px-4 py-3 whitespace-nowrap text-xs text-gray-400">{{ ticket.priority|default:"—" }}</td>
37
<td class="px-4 py-3 whitespace-nowrap text-xs text-gray-500 text-right">{{ ticket.created|date:"Y-m-d" }}</td>
38
</tr>
39
{% empty %}
40
<tr>
41
<td colspan="5" class="px-4 py-8 text-center text-sm text-gray-400">No tickets found.</td>
42
</tr>
43
{% endfor %}
44
</tbody>
45
</table>
46
</div>
47
</div>
48

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button