forgejo/templates/repo/diff
wxiaoguang d3b4f9d326 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.
(cherry picked from commit a62a887649)
2024-05-24 12:45:35 +00:00
..
blob_excerpt.tmpl Migrate font-family to tailwind (#30118) 2024-03-30 07:17:32 +01:00
box.tmpl Fix unlabelled button in code review 2024-04-22 14:54:19 +00:00
comment_form.tmpl Add svg linter and fix incorrect svgs (#30086) 2024-03-30 07:17:30 +01:00
comment_form_datahandler.tmpl
comments.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
compare.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
conversation.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
conversations.tmpl
csv_diff.tmpl
escape_title.tmpl
image_diff.tmpl Provide a way to translate data units 2024-04-02 17:29:32 +00:00
new_comment.tmpl
new_review.tmpl
options_dropdown.tmpl
section_code.tmpl
section_split.tmpl Fix incorrect "blob excerpt" link when comparing files (#31013) 2024-05-24 12:45:35 +00:00
section_unified.tmpl Fix incorrect "blob excerpt" link when comparing files (#31013) 2024-05-24 12:45:35 +00:00
stats.tmpl
whitespace_dropdown.tmpl