* [PATCH 3/3] view: fix Atom feed link in full message view page
2016-01-09 9:45 5% [PATCH 0/3] a few minor small fixes Eric Wong
@ 2016-01-09 9:45 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2016-01-09 9:45 UTC (permalink / raw)
To: meta
Oops :x
---
lib/PublicInbox/View.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 829806d..0783a1d 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -558,10 +558,11 @@ sub html_footer {
my $srch = $ctx->{srch} if $ctx;
my $upfx = $full_pfx ? '../' : '../../';
+ my $tpfx = $full_pfx ? '' : '../';
my $idx = $standalone ? " <a\nhref=\"$upfx\">index</a>" : '';
if ($srch && $standalone) {
- $idx .= qq{ / follow: <a\nhref="t.atom">Atom feed</a>\n};
+ $idx .= qq{ / follow: <a\nhref="${tpfx}t.atom">Atom feed</a>\n};
}
if ($idx && $srch) {
my $p = $ctx->{parent_msg};
@@ -579,7 +580,6 @@ sub html_footer {
$irt .= ' ' x length('next ');
}
if ($p || $next) {
- my $tpfx = $full_pfx ? '' : '../';
$irt .= "<a\nhref=\"${tpfx}t/#u\">thread</a> ";
} else {
$irt .= ' ' x length('thread ');
--
EW
^ permalink raw reply related [relevance 7%]
* [PATCH 0/3] a few minor small fixes
@ 2016-01-09 9:45 5% Eric Wong
2016-01-09 9:45 7% ` [PATCH 3/3] view: fix Atom feed link in full message view page Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2016-01-09 9:45 UTC (permalink / raw)
To: meta
3 changes:
hval: use more appropriate hvals for documentation
hval: new should not strip leading spaces
view: fix Atom feed link in full message view page
lib/PublicInbox/ExtMsg.pm | 2 +-
lib/PublicInbox/Hval.pm | 3 +--
lib/PublicInbox/SearchView.pm | 2 +-
lib/PublicInbox/View.pm | 29 ++++++++++++++++++++---------
4 files changed, 23 insertions(+), 13 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-01-09 9:45 5% [PATCH 0/3] a few minor small fixes Eric Wong
2016-01-09 9:45 7% ` [PATCH 3/3] view: fix Atom feed link in full message view page Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).