diff options
Diffstat (limited to 'overlays/patches/public-inbox/0001-view-don-t-show-page-if-no-links-follow-it.patch')
-rw-r--r-- | overlays/patches/public-inbox/0001-view-don-t-show-page-if-no-links-follow-it.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/overlays/patches/public-inbox/0001-view-don-t-show-page-if-no-links-follow-it.patch b/overlays/patches/public-inbox/0001-view-don-t-show-page-if-no-links-follow-it.patch deleted file mode 100644 index 50625a0f780c..000000000000 --- a/overlays/patches/public-inbox/0001-view-don-t-show-page-if-no-links-follow-it.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 43a7993ca9a6cf3b410adf4449580033ff19a4c9 Mon Sep 17 00:00:00 2001 -From: Alyssa Ross <hi@alyssa.is> -Date: Thu, 16 Jan 2020 18:08:33 +0000 -Subject: [PATCH 1/2] view: don't show `page:' if no links follow it - ---- - lib/PublicInbox/View.pm | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - -diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm -index b90cb08b..193e9a48 100644 ---- a/lib/PublicInbox/View.pm -+++ b/lib/PublicInbox/View.pm -@@ -1189,7 +1189,9 @@ sub pagination_footer ($$) { - $next = $next ? "$next | " : ' | '; - $prev .= qq[ | <a\nhref="$latest">latest</a>]; - } -- "<hr><pre>page: $next$prev</pre>"; -+ if ($prev || $next) { -+ "<hr><pre>page: $next$prev</pre>"; -+ } - } - - sub paginate_recent ($$) { --- -2.35.1 - |