FossilRepo

fossilrepo / templates / projects / project_list.html
Source Blame History 33 lines
4ce269c… ragelink 1 {% extends "base.html" %}
4ce269c… ragelink 2 {% block title %}Projects — Fossilrepo{% endblock %}
4ce269c… ragelink 3
4ce269c… ragelink 4 {% block content %}
313537c… ragelink 5 <div class="flex flex-wrap items-center justify-between gap-4 mb-6">
4ce269c… ragelink 6 <h1 class="text-2xl font-bold text-gray-100">Projects</h1>
4ce269c… ragelink 7 {% if perms.projects.add_project %}
4ce269c… ragelink 8 <a href="{% url 'projects:create' %}"
2f13242… ragelink 9 class="inline-flex items-center rounded-md bg-brand px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-brand-hover focus:outline-none focus:ring-2 focus:ring-brand focus:ring-offset-2 focus:ring-offset-gray-950 transition-colors">
4ce269c… ragelink 10 New Project
4ce269c… ragelink 11 </a>
4ce269c… ragelink 12 {% endif %}
4ce269c… ragelink 13 </div>
4ce269c… ragelink 14
7e1aaf6… ragelink 15 <div class="mb-4 search-wrap max-w-md">
4ce269c… ragelink 16 <input type="search"
4ce269c… ragelink 17 name="search"
4ce269c… ragelink 18 value="{{ search }}"
4ce269c… ragelink 19 placeholder="Search projects..."
7e1aaf6… ragelink 20 aria-label="Search projects"
7e1aaf6… ragelink 21 class="w-full rounded-md border-gray-700 bg-gray-800 text-gray-100 shadow-sm focus:border-brand focus:ring-brand sm:text-sm"
4ce269c… ragelink 22 hx-get="{% url 'projects:list' %}"
4ce269c… ragelink 23 hx-trigger="input changed delay:300ms, search"
4ce269c… ragelink 24 hx-target="#project-table"
4ce269c… ragelink 25 hx-swap="outerHTML"
7e1aaf6… ragelink 26 hx-push-url="true"
7e1aaf6… ragelink 27 hx-indicator="closest .search-wrap" />
7e1aaf6… ragelink 28 <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>
4ce269c… ragelink 29 </div>
4ce269c… ragelink 30
4ce269c… ragelink 31 {% include "projects/partials/project_table.html" %}
c588255… ragelink 32 {% include "includes/_pagination.html" %}
4ce269c… ragelink 33 {% 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