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