]> Sergey Matveev's repositories - public-inbox.git/commitdiff
use "Atom feed" consistently in headers/footers
authorEric Wong <e@80x24.org>
Sat, 26 Dec 2015 01:26:40 +0000 (01:26 +0000)
committerEric Wong <e@80x24.org>
Sat, 26 Dec 2015 01:26:40 +0000 (01:26 +0000)
While having the extra " feed" is noisy in the main topic
landing page, it is useful in headers/footers which have
plenty of space to be more descriptive.

lib/PublicInbox/Feed.pm
lib/PublicInbox/SearchView.pm

index 7ebc0505602f5e11d6ce5b39fc8d8b4ebf461805..5708b60e36141188f21fd5a4522ae187777adc02 100644 (file)
@@ -194,7 +194,7 @@ sub nav_footer {
                $head = $cgi->path_info;
                $head = qq!<a\nhref="$head">head</a>!;
        }
-       my $atom = "<a\nhref=\"$feed_opts->{atomurl}\">Atom</a>";
+       my $atom = "<a\nhref=\"$feed_opts->{atomurl}\">Atom feed</a>";
        "<a\nname=\"s$anchor\">page:</a> $next $head $atom";
 }
 
index 8751fca29654e7d51cfd6b952dc25c98e75ccff2..ab3dddb48252ea62197fd79d8fbb2d746175825b 100644 (file)
@@ -103,15 +103,13 @@ sub search_nav_top {
        my $x = $q->{x};
        if ($x eq '') {
                my $t = $q->qs_html(x => 't');
-               $rv .= qq{<b>summary</b>|};
-               $rv .= qq{<a\nhref="?$t">threaded</a>}
+               $rv .= qq{<b>summary</b>|<a\nhref="?$t">threaded</a>}
        } elsif ($q->{x} eq 't') {
                my $s = $q->qs_html(x => '');
-               $rv .= qq{<a\nhref="?$s">summary</a>|};
-               $rv .= qq{<b>threaded</b>};
+               $rv .= qq{<a\nhref="?$s">summary</a>|<b>threaded</b>};
        }
        my $A = $q->qs_html(x => 'A', r => undef);
-       $rv .= qq{|<a\nhref="?$A">Atom</a>]};
+       $rv .= qq{|<a\nhref="?$A">Atom feed</a>]};
 }
 
 sub search_nav_bot {