FossilRepo

fossilrepo / templates / fossil / tag_list.html
1
{% extends "base.html" %}
2
{% load fossil_filters %}
3
{% block title %}Tags — {{ project.name }} — Fossilrepo{% endblock %}
4
5
{% block content %}
6
<h1 class="text-2xl font-bold text-gray-100 mb-2">{{ project.name }}</h1>
7
{% include "fossil/_project_nav.html" %}
8
9
<div class="flex items-center justify-between mb-4">
10
<div>
11
<span class="search-wrap">
12
<input type="search"
13
name="search"
14
value="{{ search }}"
15
placeholder="Search tags..."
16
aria-label="Search tags"
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"
18
hx-get="{% url 'fossil:tags' slug=project.slug %}"
19
hx-trigger="input changed delay:300ms, search"
20
hx-target="#tag-content"
21
hx-swap="innerHTML"
22
hx-push-url="true"
23
hx-indicator="closest .search-wrap" />
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>
25
</span>
26
</div>
27
</div>
28
29
<div id="tag-content">
30
<div class="overflow-x-auto rounded-lg border border-gray-700 bg-gray-800 shadow-sm">
31
<table class="min-w-full divide-y divide-gray-700">
32
<thead class="bg-gray-900/80">
33
<tr>
34
<th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Tag</th>
35
<th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Checkin</th>
36
<th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">By</th>
37
<th class="px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-gray-400">Date</th>
38
</tr>
39
</thead>
40
<tbody class="divide-y divide-gray-700/70 bg-gray-800">
41
{% for tag in tags %}
42
<tr class="hover:bg-gray-700/40 transition-colors">
43
<td class="px-4 py-3">
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>
45
</td>
46
<td class="px-4 py-3">
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>
48
</td>
49
<td class="px-4 py-3">
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>
51
</td>
52
<td class="px-4 py-3 text-sm text-gray-500 text-right">{{ tag.timestamp|date:"Y-m-d" }}</td>
53
</tr>
54
{% empty %}
55
<tr>
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>
57
</tr>
58
{% endfor %}
59
</tbody>
60
</table>
61
</div>
62
{% include "includes/_pagination_manual.html" %}
63
</div>
64
{% endblock %}
65

Keyboard Shortcuts

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