diff options
author | Eric Wong <e@80x24.org> | 2022-08-29 09:26:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-29 19:05:51 +0000 |
commit | 6320f9f813443cdd14476f723deb022e2dfff9c4 (patch) | |
tree | 376e34c825d99b6c6c6514b87ad2afb5bbc4a90b /lib/PublicInbox/ViewDiff.pm | |
parent | 94a70f57bf1b449192c9d68637cf985b8d5cfaca (diff) | |
download | public-inbox-6320f9f813443cdd14476f723deb022e2dfff9c4.tar.gz |
The HTML generated for the Atom feed doesn't have the footer of /T/ and /t/ HTML-only views, so just make "changed" in the diffstat go directly to the permalink #related anchor. Fixes: 66512e177390 ("view: generate query in single-message and commit views")
Diffstat (limited to 'lib/PublicInbox/ViewDiff.pm')
-rw-r--r-- | lib/PublicInbox/ViewDiff.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/ViewDiff.pm b/lib/PublicInbox/ViewDiff.pm index ee2d688c..8c1853e6 100644 --- a/lib/PublicInbox/ViewDiff.pm +++ b/lib/PublicInbox/ViewDiff.pm @@ -180,8 +180,8 @@ sub diff_before_or_after ($$) { $$dst .= $linkify->to_html($l); } $$dst .= $x[2]; # $3 /^ \d+ files? / - my $end = $ctx->{end_id} // 'related'; - $$dst .= "<a href=#$end>changed</a>,"; + my $ch = $ctx->{changed_href} // '#related'; + $$dst .= qq(<a href="$ch">changed</a>,); $$dst .= ascii_html($x[1]); # $4: insertions/deletions $$dst .= $linkify->to_html($x[0]); # notes, commit message, etc } else { |