FossilRepo

Show search results in main area when wiki search has matches

ragelink 2026-04-14 05:23 UTC trunk
Commit 385412136e63b1e07da382d8c19d042e153e4b5c0fbafe4fdd47be8a357e1c57
--- templates/fossil/partials/wiki_list_content.html
+++ templates/fossil/partials/wiki_list_content.html
@@ -9,10 +9,20 @@
99
<div class="px-6 py-6">
1010
<div class="prose prose-invert prose-gray max-w-none">
1111
{{ home_content_html }}
1212
</div>
1313
</div>
14
+ </div>
15
+ {% elif search and pages %}
16
+ <div class="rounded-lg bg-gray-800 border border-gray-700 divide-y divide-gray-700/70">
17
+ {% for p in pages %}
18
+ <a href="{% url 'fossil:wiki_page' slug=project.slug page_name=p.name %}"
19
+ class="flex items-center justify-between px-5 py-3 hover:bg-gray-700/30 transition-colors group">
20
+ <span class="text-sm font-medium text-gray-200 group-hover:text-brand-light">{{ p.name }}</span>
21
+ <svg class="h-4 w-4 text-gray-600 group-hover:text-brand-light" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5" /></svg>
22
+ </a>
23
+ {% endfor %}
1424
</div>
1525
{% elif not pages %}
1626
<div class="rounded-lg bg-gray-800 border border-gray-700 p-8 text-center">
1727
<p class="text-sm text-gray-500">{% if search %}No wiki pages matching "{{ search }}".{% else %}No wiki pages yet. Create a "Home" page to get started.{% endif %}</p>
1828
</div>
1929
--- templates/fossil/partials/wiki_list_content.html
+++ templates/fossil/partials/wiki_list_content.html
@@ -9,10 +9,20 @@
9 <div class="px-6 py-6">
10 <div class="prose prose-invert prose-gray max-w-none">
11 {{ home_content_html }}
12 </div>
13 </div>
 
 
 
 
 
 
 
 
 
 
14 </div>
15 {% elif not pages %}
16 <div class="rounded-lg bg-gray-800 border border-gray-700 p-8 text-center">
17 <p class="text-sm text-gray-500">{% if search %}No wiki pages matching "{{ search }}".{% else %}No wiki pages yet. Create a "Home" page to get started.{% endif %}</p>
18 </div>
19
--- templates/fossil/partials/wiki_list_content.html
+++ templates/fossil/partials/wiki_list_content.html
@@ -9,10 +9,20 @@
9 <div class="px-6 py-6">
10 <div class="prose prose-invert prose-gray max-w-none">
11 {{ home_content_html }}
12 </div>
13 </div>
14 </div>
15 {% elif search and pages %}
16 <div class="rounded-lg bg-gray-800 border border-gray-700 divide-y divide-gray-700/70">
17 {% for p in pages %}
18 <a href="{% url 'fossil:wiki_page' slug=project.slug page_name=p.name %}"
19 class="flex items-center justify-between px-5 py-3 hover:bg-gray-700/30 transition-colors group">
20 <span class="text-sm font-medium text-gray-200 group-hover:text-brand-light">{{ p.name }}</span>
21 <svg class="h-4 w-4 text-gray-600 group-hover:text-brand-light" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5" /></svg>
22 </a>
23 {% endfor %}
24 </div>
25 {% elif not pages %}
26 <div class="rounded-lg bg-gray-800 border border-gray-700 p-8 text-center">
27 <p class="text-sm text-gray-500">{% if search %}No wiki pages matching "{{ search }}".{% else %}No wiki pages yet. Create a "Home" page to get started.{% endif %}</p>
28 </div>
29

Keyboard Shortcuts

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