about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-08-02 01:47:55 +0000
committerEric Wong <e@80x24.org>2016-08-02 07:49:30 +0000
commitb7c4bca292fb1f7ac4d73ff96b2ce95185b4fc66 (patch)
treee90c8dcce6af55a710a1ca97de3c29e3ebe758c2 /lib/PublicInbox
parent21d3fe9db86dc235b914cedbb21b513b96b95184 (diff)
downloadpublic-inbox-b7c4bca292fb1f7ac4d73ff96b2ce95185b4fc66.tar.gz
search is probably more useful so users should be able to select
it sooner.  Put it on its own line so it won't get scrolled off
the edge for non-CSS users.

Fix a minor spacing bug in the input tag while we're at it, too
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/WwwStream.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm
index ec9ae0cf..29395f40 100644
--- a/lib/PublicInbox/WwwStream.pm
+++ b/lib/PublicInbox/WwwStream.pm
@@ -33,11 +33,12 @@ sub _html_top ($) {
         my $upfx = $ctx->{-upfx} || '';
         my $atom = $ctx->{-atom} || $upfx.'new.atom';
         my $tip = $ctx->{-html_tip} || '';
-        my $top = "<b>$desc</b> (<a\nhref=\"$atom\">Atom feed</a>)";
+        my $top = "<b>$desc</b>";
+        my $links = "<a\nhref=\"$atom\">Atom feed</a>";
         if ($obj->search) {
                 my $q_val = $ctx->{-q_value_html};
                 if (defined $q_val && $q_val ne '') {
-                        $q_val = qq(\nvalue="$q_val" );
+                        $q_val = qq(\nvalue="$q_val");
                 } else {
                         $q_val = '';
                 }
@@ -45,12 +46,13 @@ sub _html_top ($) {
                 my $extra = $ctx->{-extra_form_html} || '';
                 my $action = $upfx eq '' ? './' : $upfx;
                 $top = qq{<form\naction="$action"><pre>$top} .
-                          qq{ <input\nname=q\ntype=text$q_val/>} .
+                          qq{\n<input\nname=q\ntype=text$q_val />} .
                           $extra .
                           qq{<input\ntype=submit\nvalue=search />} .
+                          ' ' . $links .
                           q{</pre></form>}
         } else {
-                $top = '<pre>' . $top . '</pre>';
+                $top = '<pre>' . $top . "\n" . $links . '</pre>';
         }
         "<html><head><title>$title</title>" .
                 "<link\nrel=alternate\ntitle=\"Atom feed\"\n".