forked from gitea/gitea
1
0
Fork 0
gitea/templates/repo/diff
Giteabot 3bab20491e
Fix being unable to use a repo that prohibits accepting PRs as a PR source. (#26785) (#26790)
Backport #26785 by @CaiCandong

## Description 
Sometimes, we need to use an upstream mirror repository to update the
current development repository, but mirror repositories are prohibited
from PR. It should not appear in `merge to,` but it can appear in `pull
from.`
Fix #24585 #26193 #26781
Related #24183

Many thanks to @apnote  for assisting me in reproducing this bug!

## ScreenShot
---
### Before

<img
src="https://github.com/go-gitea/gitea/assets/50507092/3d76c376-1f54-45b9-80c9-6ba8319d6a9a"
width="400px">

<img
src="https://github.com/go-gitea/gitea/assets/50507092/fbfd9f7f-421f-4a2e-9a3e-f2958bbf3312"
width="400px">

### After

<img
src="https://github.com/go-gitea/gitea/assets/50507092/e6984524-4f61-4310-b795-4d8598bd8963"
width="400px">

<img
src="https://github.com/go-gitea/gitea/assets/50507092/04065b44-78d7-4721-bf31-0f1674150727"
width="400px">

Co-authored-by: CaiCandong <50507092+CaiCandong@users.noreply.github.com>
2023-08-29 18:06:05 +08:00
..
blob_excerpt.tmpl Button and color enhancements (#24989) (#25176) 2023-06-11 02:13:08 +00:00
box.tmpl Display human-readable text instead of cryptic filemodes (#26352) (#26358) 2023-08-06 23:15:01 +02:00
comment_form.tmpl Don't autosize textarea in diff view (#26233) (#26244) 2023-07-31 10:02:25 +02:00
comment_form_datahandler.tmpl Make sure fmt catches all templates (#20979) 2022-08-31 23:58:54 +08:00
comments.tmpl Show outdated comments in files changed tab (#24936) (#25428) 2023-06-22 08:34:42 +00:00
compare.tmpl Fix being unable to use a repo that prohibits accepting PRs as a PR source. (#26785) (#26790) 2023-08-29 18:06:05 +08:00
conversation.tmpl Show outdated comments in files changed tab (#24936) (#25428) 2023-06-22 08:34:42 +00:00
csv_diff.tmpl Fix CSV diff for added/deleted files (#21189) 2022-09-17 10:45:32 +08:00
escape_title.tmpl Switch Unicode Escaping to a VSCode-like system (#19990) 2022-08-13 19:32:34 +01:00
image_diff.tmpl Improve "new-menu" (#24465) 2023-05-01 12:08:37 -04: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 Fix dropdown icon layout on diff page (#25397) (#25403) 2023-06-21 10:55:11 +08:00
options_dropdown.tmpl Show outdated comments in files changed tab (#24936) (#25428) 2023-06-22 08:34:42 +00:00
section_code.tmpl Switch Unicode Escaping to a VSCode-like system (#19990) 2022-08-13 19:32:34 +01:00
section_split.tmpl Make `add line comment` buttons focusable (#25894) (#25896) 2023-07-15 12:18:49 +02:00
section_unified.tmpl Make `add line comment` buttons focusable (#25894) (#25896) 2023-07-15 12:18:49 +02:00
stats.tmpl Group template helper functions, remove `Printf`, improve template error messages (#23982) 2023-04-08 21:15:22 +08:00
whitespace_dropdown.tmpl Show outdated comments in files changed tab (#24936) (#25428) 2023-06-22 08:34:42 +00:00