gitea/templates/repo/diff
Lunny Xiao 8373f7deb3
improve the compare page (#36261)
- The compare page head title should be `compare` but not `new pull
request`.
- Use `UnstableGuessRefByShortName` instead of duplicated functions
calls.
- Direct-compare, tags, commits compare will not display `New Pull
Request` button any more.

The new screenshot
<img width="1459" height="391" alt="image"
src="https://github.com/user-attachments/assets/64e9b070-9c0b-41d1-b4b8-233b96270e1b"
/>

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-01-01 10:32:19 -08:00
..
blob_excerpt.tmpl feat(diff): Enable commenting on expanded lines in PR diffs (#35662) 2025-10-19 18:19:12 +08:00
box.tmpl Fix viewed files number is not right if not all files loaded (#35821) 2025-11-03 13:34:52 -08:00
comment_form_datahandler.tmpl Make sure fmt catches all templates (#20979) 2022-08-31 23:58:54 +08:00
comment_form.tmpl Replace CSRF cookie with CrossOriginProtection (#36183) 2025-12-25 12:33:34 +02:00
comments.tmpl Refactor view issue & comment list styles (#35061) 2025-07-13 22:52:35 +08:00
compare.tmpl improve the compare page (#36261) 2026-01-01 10:32:19 -08:00
conversation_outdated.tmpl Improve user experience for outdated comments (#29050) 2024-02-08 01:50:48 +00:00
conversation.tmpl Fix various UI problems (#34243) 2025-04-19 08:43:22 +00:00
csv_diff.tmpl Fix CSV diff for added/deleted files (#21189) 2022-09-17 10:45:32 +08:00
escape_title.tmpl Refactor tmpl and blob_excerpt (#32967) 2024-12-25 00:51:13 +08:00
image_diff.tmpl Fix various trivial frontend problems (#34263) 2025-04-24 09:11:54 +08:00
new_comment.tmpl Do not reload page after adding comments in Pull Request reviews (#13877) 2021-01-08 23:49:55 +02:00
new_review.tmpl Replace CSRF cookie with CrossOriginProtection (#36183) 2025-12-25 12:33:34 +02:00
options_dropdown.tmpl Use git diff-tree for DiffFileTree on diff pages (#33514) 2025-02-28 00:58:25 +00:00
section_code.tmpl Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
section_split.tmpl feat(diff): Enable commenting on expanded lines in PR diffs (#35662) 2025-10-19 18:19:12 +08:00
section_unified.tmpl fix: Exclude code expansion arrows when DiffBlobExcerptData is not available. (#36060) 2025-12-04 20:07:22 -08:00
stats.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
whitespace_dropdown.tmpl code optimization (#31315) 2024-06-11 21:07:10 +08:00