|
1
|
{% extends "base.html" %} |
|
2
|
{% block title %}FossilRepo Docs — Fossilrepo{% endblock %} |
|
3
|
|
|
4
|
{% block content %} |
|
5
|
<div class="md:flex md:items-center md:justify-between mb-6"> |
|
6
|
<h1 class="text-2xl font-bold text-gray-100">FossilRepo Docs</h1> |
|
7
|
{% if perms.pages.add_page %} |
|
8
|
<a href="{% url 'pages:create' %}" |
|
9
|
class="mt-4 md:mt-0 inline-flex items-center rounded-md bg-brand px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-brand-hover"> |
|
10
|
New Page |
|
11
|
</a> |
|
12
|
{% endif %} |
|
13
|
</div> |
|
14
|
|
|
15
|
<div class="mb-4 search-wrap max-w-md"> |
|
16
|
<input type="search" |
|
17
|
name="search" |
|
18
|
value="{{ search }}" |
|
19
|
placeholder="Search knowledge base..." |
|
20
|
aria-label="Search knowledge base" |
|
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" |
|
22
|
hx-get="{% url 'pages:list' %}" |
|
23
|
hx-trigger="input changed delay:300ms, search" |
|
24
|
hx-target="#page-table" |
|
25
|
hx-swap="outerHTML" |
|
26
|
hx-push-url="true" |
|
27
|
hx-indicator="closest .search-wrap" /> |
|
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> |
|
29
|
</div> |
|
30
|
|
|
31
|
{% include "pages/partials/page_table.html" %} |
|
32
|
{% include "includes/_pagination.html" %} |
|
33
|
{% endblock %} |
|
34
|
|