* [PATCH 1/4] view: extra Atom feed link in standalone message view
2015-09-13 23:35 5% [PATCH 0/4] minor navigation tweaks Eric Wong
@ 2015-09-13 23:35 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2015-09-13 23:35 UTC (permalink / raw)
To: meta
It might be helpful if user agents do not display the <link>
element in <head>.
---
lib/PublicInbox/View.pm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 7e1fb04..6cb340b 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -544,6 +544,10 @@ sub html_footer {
my $srch = $ctx->{srch} if $ctx;
my $upfx = $full_pfx ? '../' : '../../';
my $idx = $standalone ? " <a\nhref=\"$upfx\">index</a>" : '';
+
+ if ($srch && $standalone) {
+ $idx .= qq{ / follow: <a\nhref="t.atom">Atom feed</a>};
+ }
if ($idx && $srch) {
my ($next, $p) = thread_inline(\$idx, $ctx, $mime, $full_pfx);
if (defined $p) {
--
EW
^ permalink raw reply related [relevance 7%]
* [PATCH 0/4] minor navigation tweaks
@ 2015-09-13 23:35 5% Eric Wong
2015-09-13 23:35 7% ` [PATCH 1/4] view: extra Atom feed link in standalone message view Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2015-09-13 23:35 UTC (permalink / raw)
To: meta
A few navigation tweaks to hopefully improve per-message and
per-thread views.
Eric Wong (4):
view: extra Atom feed link in standalone message view
view: use header_obj to avoid extra method calls
view: do not show References unless a message has them
view: jump to anchor of current message on References
lib/PublicInbox/View.pm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 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 --
2015-09-13 23:35 5% [PATCH 0/4] minor navigation tweaks Eric Wong
2015-09-13 23:35 7% ` [PATCH 1/4] view: extra Atom feed link in standalone message view 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).