0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-26 15:56:10 -05:00
forgejo/templates/repo
CaiCandong c576b50441
Fix being unable to use a repo that prohibits accepting PRs as a PR source. (#26785)
## 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">
2023-08-29 12:07:15 +03:00
..
actions add disable workflow feature (#26413) 2023-08-14 15:14:30 +00:00
branch Refactor some CSS styles and simplify code (#26771) 2023-08-28 22:14:51 +08:00
cite
code Fix template bugs in recently_pushed_new_branches.tmpl (#26744) 2023-08-27 08:16:02 +08:00
diff Fix being unable to use a repo that prohibits accepting PRs as a PR source. (#26785) 2023-08-29 12:07:15 +03:00
editor Fix incorrect "tabindex" attributes (#26733) 2023-08-26 10:44:00 +08:00
find
graph
issue Refactor some CSS styles and simplify code (#26771) 2023-08-28 22:14:51 +08:00
migrate Use docs.gitea.com instead of docs.gitea.io (#26739) 2023-08-27 11:59:12 +00:00
projects Refactor project templates (#26448) 2023-08-12 10:30:28 +00:00
pulls
release Simplify helper CSS classes and avoid abuse (#26728) 2023-08-26 01:35:10 +02:00
settings Use docs.gitea.com instead of docs.gitea.io (#26739) 2023-08-27 11:59:12 +00:00
tag
wiki
activity.tmpl
blame.tmpl
branch_dropdown.tmpl Fix doubled box-shadow in branch dropdown menu (#26678) 2023-08-23 08:13:04 +00:00
clone_buttons.tmpl Remove some transition related code (#26755) 2023-08-28 01:26:23 +00:00
clone_script.tmpl
commit_load_branches_and_tags.tmpl
commit_page.tmpl
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl Use correct pull request commit link instead of a generic commit link (#26434) 2023-08-13 11:04:42 +02:00
commits_list_small.tmpl
commits_table.tmpl Remove ref name in PR commits page (#25876) 2023-08-24 01:31:54 +00:00
create.tmpl Fix incorrect "tabindex" attributes (#26733) 2023-08-26 10:44:00 +08:00
create_helper.tmpl
empty.tmpl
file_info.tmpl
forks.tmpl
graph.tmpl
header.tmpl
home.tmpl Simplify helper CSS classes and avoid abuse (#26728) 2023-08-26 01:35:10 +02:00
icon.tmpl Refactor some CSS styles and simplify code (#26771) 2023-08-28 22:14:51 +08:00
packages.tmpl
release_tag_header.tmpl
search.tmpl Refactor some CSS styles and simplify code (#26771) 2023-08-28 22:14:51 +08:00
search_name.tmpl
shabox_badge.tmpl
sub_menu.tmpl Improve repo sub menu (#26531) 2023-08-22 09:20:09 +00:00
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl
view_list.tmpl
watchers.tmpl