|
1
|
{% extends "base.html" %} |
|
2
|
{% block title %}Wiki — {{ project.name }} — Fossilrepo{% endblock %} |
|
3
|
|
|
4
|
{% block content %} |
|
5
|
<h1 class="text-2xl font-bold text-gray-100 mb-2">{{ project.name }}</h1> |
|
6
|
{% include "fossil/_project_nav.html" %} |
|
7
|
|
|
8
|
<div class="flex flex-wrap items-center justify-between gap-3 mb-4"> |
|
9
|
<div> |
|
10
|
<span class="search-wrap"> |
|
11
|
<input type="search" |
|
12
|
name="search" |
|
13
|
value="{{ search }}" |
|
14
|
placeholder="Search wiki pages..." |
|
15
|
aria-label="Search wiki pages" |
|
16
|
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" |
|
17
|
hx-get="{% url 'fossil:wiki' slug=project.slug %}" |
|
18
|
hx-trigger="input changed delay:300ms, search" |
|
19
|
hx-target="#wiki-content" |
|
20
|
hx-swap="innerHTML" |
|
21
|
hx-push-url="true" |
|
22
|
hx-indicator="closest .search-wrap" /> |
|
23
|
<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> |
|
24
|
</span> |
|
25
|
</div> |
|
26
|
{% if perms.projects.change_project %} |
|
27
|
<a href="{% url 'fossil:wiki_create' slug=project.slug %}" class="inline-flex items-center rounded-md bg-brand px-3 py-1.5 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">New Page</a> |
|
28
|
{% endif %} |
|
29
|
</div> |
|
30
|
|
|
31
|
<div id="wiki-content"> |
|
32
|
{% include "fossil/partials/wiki_list_content.html" %} |
|
33
|
</div> |
|
34
|
{% endblock %} |
|
35
|
|