FossilRepo
| 4ce269c… | ragelink | 1 | {% extends "base.html" %} |
| fcd8df3… | ragelink | 2 | {% load fossil_filters %} |
| 4ce269c… | ragelink | 3 | {% block title %}Tags — {{ project.name }} — Fossilrepo{% endblock %} |
| 4ce269c… | ragelink | 4 | |
| 4ce269c… | ragelink | 5 | {% block content %} |
| 4ce269c… | ragelink | 6 | <h1 class="text-2xl font-bold text-gray-100 mb-2">{{ project.name }}</h1> |
| 4ce269c… | ragelink | 7 | {% include "fossil/_project_nav.html" %} |
| 4ce269c… | ragelink | 8 | |
| c588255… | ragelink | 9 | <div class="flex items-center justify-between mb-4"> |
| c588255… | ragelink | 10 | <div> |
| 7e1aaf6… | ragelink | 11 | <span class="search-wrap"> |
| c588255… | ragelink | 12 | <input type="search" |
| c588255… | ragelink | 13 | name="search" |
| c588255… | ragelink | 14 | value="{{ search }}" |
| c588255… | ragelink | 15 | placeholder="Search tags..." |
| 7e1aaf6… | ragelink | 16 | aria-label="Search tags" |
| c588255… | ragelink | 17 | class="rounded-md border-gray-700 bg-gray-800 text-gray-100 shadow-sm focus:border-brand focus:ring-brand text-sm px-3 py-1.5" |
| c588255… | ragelink | 18 | hx-get="{% url 'fossil:tags' slug=project.slug %}" |
| c588255… | ragelink | 19 | hx-trigger="input changed delay:300ms, search" |
| c588255… | ragelink | 20 | hx-target="#tag-content" |
| c588255… | ragelink | 21 | hx-swap="innerHTML" |
| 7e1aaf6… | ragelink | 22 | hx-push-url="true" |
| 7e1aaf6… | ragelink | 23 | hx-indicator="closest .search-wrap" /> |
| 7e1aaf6… | ragelink | 24 | <svg class="search-spinner animate-spin h-4 w-4" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"></path></svg> |
| 7e1aaf6… | ragelink | 25 | </span> |
| c588255… | ragelink | 26 | </div> |
| c588255… | ragelink | 27 | </div> |
| c588255… | ragelink | 28 | |
| c588255… | ragelink | 29 | <div id="tag-content"> |
| 313537c… | ragelink | 30 | <div class="overflow-x-auto rounded-lg border border-gray-700 bg-gray-800 shadow-sm"> |
| 4ce269c… | ragelink | 31 | <table class="min-w-full divide-y divide-gray-700"> |
| 2f13242… | ragelink | 32 | <thead class="bg-gray-900/80"> |
| 4ce269c… | ragelink | 33 | <tr> |
| 2f13242… | ragelink | 34 | <th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Tag</th> |
| 2f13242… | ragelink | 35 | <th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Checkin</th> |
| 2f13242… | ragelink | 36 | <th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">By</th> |
| 2f13242… | ragelink | 37 | <th class="px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-gray-400">Date</th> |
| 4ce269c… | ragelink | 38 | </tr> |
| 4ce269c… | ragelink | 39 | </thead> |
| 2f13242… | ragelink | 40 | <tbody class="divide-y divide-gray-700/70 bg-gray-800"> |
| 4ce269c… | ragelink | 41 | {% for tag in tags %} |
| 2f13242… | ragelink | 42 | <tr class="hover:bg-gray-700/40 transition-colors"> |
| 4ce269c… | ragelink | 43 | <td class="px-4 py-3"> |
| 4ce269c… | ragelink | 44 | <span class="inline-flex items-center rounded-md bg-blue-900/20 border border-blue-800/30 px-2 py-0.5 text-sm text-blue-300">{{ tag.name }}</span> |
| 4ce269c… | ragelink | 45 | </td> |
| 4ce269c… | ragelink | 46 | <td class="px-4 py-3"> |
| 4ce269c… | ragelink | 47 | <a href="{% url 'fossil:checkin_detail' slug=project.slug checkin_uuid=tag.uuid %}" class="font-mono text-xs text-brand-light hover:text-brand">{{ tag.uuid|truncatechars:10 }}</a> |
| 4ce269c… | ragelink | 48 | </td> |
| 4ce269c… | ragelink | 49 | <td class="px-4 py-3"> |
| fcd8df3… | ragelink | 50 | <a href="{% url 'fossil:user_activity' slug=project.slug username=tag.user %}" class="text-sm text-gray-400 hover:text-brand-light">{{ tag.user|display_user }}</a> |
| 4ce269c… | ragelink | 51 | </td> |
| 4ce269c… | ragelink | 52 | <td class="px-4 py-3 text-sm text-gray-500 text-right">{{ tag.timestamp|date:"Y-m-d" }}</td> |
| 4ce269c… | ragelink | 53 | </tr> |
| 4ce269c… | ragelink | 54 | {% empty %} |
| 4ce269c… | ragelink | 55 | <tr> |
| c588255… | ragelink | 56 | <td colspan="4" class="px-4 py-8 text-center text-sm text-gray-500">{% if search %}No tags matching "{{ search }}".{% else %}No tags.{% endif %}</td> |
| 4ce269c… | ragelink | 57 | </tr> |
| 4ce269c… | ragelink | 58 | {% endfor %} |
| 4ce269c… | ragelink | 59 | </tbody> |
| 4ce269c… | ragelink | 60 | </table> |
| c588255… | ragelink | 61 | </div> |
| c588255… | ragelink | 62 | {% include "includes/_pagination_manual.html" %} |
| 4ce269c… | ragelink | 63 | </div> |
| 4ce269c… | ragelink | 64 | {% endblock %} |