Commit Diff


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 "<a href='/'>Index</a>";
 	print $fh " | <a href='/thread/$enctid.html#$encmid'>Thread</a>"
 	    if defined $enctid;
-	print $fh " | <a href='/search'>Search</a>";
+	print $fh $search_link;
 	print $fh "</p>\n";
 
 	say $fh "<dl>";
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 @@
+<!--
+     leave this file empty to hide the search link in the mail and
+     thread heading when not running msearchd(8).
+-->
+| <a href="/search">Search</a>