commit 5b9809494be77ed2eae2004f93fa310eb0f658de
from: Omar Polo
date: Wed Jan 10 10:46:46 2024 UTC
move the search link to a template
This way, when not wishing to run msearchd(8), it is still possible
to hide the search link.
commit - 8650c089591709006a66477b49efa461e37e3069
commit + 5b9809494be77ed2eae2004f93fa310eb0f658de
blob - 91ed758affca126c135b290882b9fe02a8edd22d
blob + c7c3fc114b8ed894a6b0155dfb9cb6b15bc2028c
--- SMArc.pm
+++ SMArc.pm
@@ -76,6 +76,7 @@ my $hdr = readall "$templates/head.html";
my $foot = readall "$templates/foot.html";
my $idxhdr = readall "$templates/index-header.html";
my $search = readall "$templates/search.html";
+my $search_link = readall "$templates/search-link.html";
sub initpage {
my ($fh, $title) = @_;
@@ -115,7 +116,7 @@ sub thread_header {
print $fh "Index";
print $fh " | Thread"
if defined $enctid;
- print $fh " | Search";
+ print $fh $search_link;
print $fh "
\n";
say $fh "";
blob - 030d1a875da5e5a062087df49cc93267531045d5
blob + beba18dbc8de6a14cdf5c9f2e69863bf44226bdc
--- templates/Makefile
+++ templates/Makefile
@@ -1,5 +1,6 @@
DISTFILES = Makefile foot.html head.html index-header.html \
- logo-small.html search-header.html search.html
+ logo-small.html search-header.html search-link.html \
+ search.html
all:
false
blob - /dev/null
blob + da6d55b7cf2d35ea7e331fe12e5b8ff58684023e (mode 644)
--- /dev/null
+++ templates/search-link.html
@@ -0,0 +1,5 @@
+
+| Search