0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-27 09:54:15 -05:00
forgejo/templates/repo/diff
wxiaoguang a62a887649
Fix incorrect "blob excerpt" link when comparing files (#31013)
When comparing files between the base repo and forked repo, the "blob
excerpt" link should point to the forked repo, because the commit
doesn't exist in base repo.

Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit f48cc501c46a2d34eb701561f01d888d689d60d5)

Conflicts:
	- templates/repo/diff/section_split.tmpl
	- templates/repo/diff/section_unified.tmpl
          Resolved the conflict by picking Gitea's change over ours, and
	  porting it.
	- tests/integration/compare_test.go
	  Kept our test, but picked the "compare all of the relevant
	  links" part of the Gitea test.
2024-05-24 10:08:24 +02:00
..
blob_excerpt.tmpl
box.tmpl Fix unlabelled button in code review 2024-04-18 16:20:29 +02:00
comment_form.tmpl
comment_form_datahandler.tmpl
comments.tmpl
compare.tmpl
conversation.tmpl
conversations.tmpl
csv_diff.tmpl
escape_title.tmpl
image_diff.tmpl Provide a way to translate data units 2024-03-30 21:10:47 +05:00
new_comment.tmpl
new_review.tmpl Prevent allow/reject reviews on merged/closed PRs (#30686) 2024-04-28 15:39:01 +02:00
options_dropdown.tmpl
section_code.tmpl
section_split.tmpl Fix incorrect "blob excerpt" link when comparing files (#31013) 2024-05-24 10:08:24 +02:00
section_unified.tmpl Fix incorrect "blob excerpt" link when comparing files (#31013) 2024-05-24 10:08:24 +02:00
stats.tmpl
whitespace_dropdown.tmpl