FossilRepo

fossilrepo / templates / fossil / branch_list.html
1
{% extends "base.html" %}
2
{% load fossil_filters %}
3
{% block title %}Branches — {{ 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 branches..."
16
aria-label="Search branches"
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:branches' slug=project.slug %}"
19
hx-trigger="input changed delay:300ms, search"
20
hx-target="#branch-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="branch-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">Branch</th>
35
<th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Last 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">Checkins</th>
38
<th class="px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-gray-400">Updated</th>
39
</tr>
40
</thead>
41
<tbody class="divide-y divide-gray-700/70 bg-gray-800">
42
{% for branch in branches %}
43
<tr class="hover:bg-gray-700/40 transition-colors">
44
<td class="px-4 py-3">
45
<a href="{% url 'fossil:timeline' slug=project.slug %}?type=ci" class="inline-flex items-center rounded-md bg-brand/10 border border-brand/20 px-2 py-0.5 text-sm text-brand-light hover:text-brand">
46
{{ branch.name }}
47
</a>
48
</td>
49
<td class="px-4 py-3 text-sm">
50
<a href="{% url 'fossil:checkin_detail' slug=project.slug checkin_uuid=branch.last_uuid %}" class="text-gray-300 hover:text-brand-light truncate block max-w-sm">
51
<code class="text-xs font-mono text-brand-light">{{ branch.last_uuid|truncatechars:10 }}</code>
52
</a>
53
</td>
54
<td class="px-4 py-3">
55
<a href="{% url 'fossil:user_activity' slug=project.slug username=branch.last_user %}" class="text-sm text-gray-400 hover:text-brand-light">{{ branch.last_user|display_user }}</a>
56
</td>
57
<td class="px-4 py-3 text-sm text-gray-400 text-right">{{ branch.checkin_count }}</td>
58
<td class="px-4 py-3 text-sm text-gray-500 text-right">{{ branch.last_checkin|timesince }} ago</td>
59
</tr>
60
{% empty %}
61
<tr>
62
<td colspan="5" class="px-4 py-8 text-center text-sm text-gray-500">{% if search %}No branches matching "{{ search }}".{% else %}No branches.{% endif %}</td>
63
</tr>
64
{% endfor %}
65
</tbody>
66
</table>
67
</div>
68
{% include "includes/_pagination_manual.html" %}
69
</div>
70
{% endblock %}
71

Keyboard Shortcuts

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