FossilRepo

fossilrepo / templates / fossil / branch_list.html
Source Blame History 70 lines
4ce269c… ragelink 1 {% extends "base.html" %}
fcd8df3… ragelink 2 {% load fossil_filters %}
4ce269c… ragelink 3 {% block title %}Branches — {{ 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 branches..."
7e1aaf6… ragelink 16 aria-label="Search branches"
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:branches' slug=project.slug %}"
c588255… ragelink 19 hx-trigger="input changed delay:300ms, search"
c588255… ragelink 20 hx-target="#branch-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="branch-content">
7d099f3… 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">Branch</th>
2f13242… ragelink 35 <th class="px-4 py-3 text-left text-xs font-medium uppercase tracking-wider text-gray-400">Last 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">Checkins</th>
2f13242… ragelink 38 <th class="px-4 py-3 text-right text-xs font-medium uppercase tracking-wider text-gray-400">Updated</th>
4ce269c… ragelink 39 </tr>
4ce269c… ragelink 40 </thead>
2f13242… ragelink 41 <tbody class="divide-y divide-gray-700/70 bg-gray-800">
4ce269c… ragelink 42 {% for branch in branches %}
2f13242… ragelink 43 <tr class="hover:bg-gray-700/40 transition-colors">
4ce269c… ragelink 44 <td class="px-4 py-3">
4ce269c… ragelink 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">
4ce269c… ragelink 46 {{ branch.name }}
4ce269c… ragelink 47 </a>
4ce269c… ragelink 48 </td>
4ce269c… ragelink 49 <td class="px-4 py-3 text-sm">
4ce269c… ragelink 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">
4ce269c… ragelink 51 <code class="text-xs font-mono text-brand-light">{{ branch.last_uuid|truncatechars:10 }}</code>
4ce269c… ragelink 52 </a>
4ce269c… ragelink 53 </td>
4ce269c… ragelink 54 <td class="px-4 py-3">
fcd8df3… ragelink 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>
4ce269c… ragelink 56 </td>
4ce269c… ragelink 57 <td class="px-4 py-3 text-sm text-gray-400 text-right">{{ branch.checkin_count }}</td>
4ce269c… ragelink 58 <td class="px-4 py-3 text-sm text-gray-500 text-right">{{ branch.last_checkin|timesince }} ago</td>
4ce269c… ragelink 59 </tr>
4ce269c… ragelink 60 {% empty %}
4ce269c… ragelink 61 <tr>
c588255… ragelink 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>
4ce269c… ragelink 63 </tr>
4ce269c… ragelink 64 {% endfor %}
4ce269c… ragelink 65 </tbody>
4ce269c… ragelink 66 </table>
c588255… ragelink 67 </div>
c588255… ragelink 68 {% include "includes/_pagination_manual.html" %}
4ce269c… ragelink 69 </div>
4ce269c… ragelink 70 {% endblock %}

Keyboard Shortcuts

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