You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo
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>
1 year ago
..
actions Actions list enhancements (#25601) (#25678) 2 years ago
branch Several fixes for mobile UI (#25634) (#25689) 2 years ago
cite Button and color enhancements (#24989) (#25176) 2 years ago
diff Fix being unable to use a repo that prohibits accepting PRs as a PR source. (#26785) (#26790) 1 year ago
editor Fix incorrect "tabindex" attributes (#26733) (#26734) 1 year ago
find Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 2 years ago
graph Improve commit graph alignment and truncating (#26112) (#26127) 2 years ago
issue Fix incorrect "tabindex" attributes (#26733) (#26734) 1 year ago
migrate Use docs.gitea.com instead of docs.gitea.io (#26769) 1 year ago
projects Fix incorrect "tabindex" attributes (#26733) (#26734) 1 year ago
pulls Allow/fix review (approve/reject) of empty PRs (#25690) (#25732) 2 years ago
release Button and color enhancements (#24989) (#25176) 2 years ago
settings Use docs.gitea.com instead of docs.gitea.io (#26769) 1 year ago
tag RSS icon fixes (#24476) 2 years ago
wiki Improve wiki sidebar and TOC (#25460) (#25477) 2 years ago
activity.tmpl Fix UI on mobile view (#25315) (#25340) 2 years ago
blame.tmpl Button and color enhancements (#24989) (#25176) 2 years ago
branch_dropdown.tmpl Make Issue/PR/projects more compact, misc CSS tweaks (#24459) 2 years ago
clone_buttons.tmpl Clarify "text-align" CSS helpers, fix clone button padding (#25763) (#25764) 2 years ago
clone_script.tmpl Rework button coloring, add focus and active colors (#24507) 2 years ago
commit_page.tmpl Clarify "text-align" CSS helpers, fix clone button padding (#25763) (#25764) 2 years ago
commit_status.tmpl Make pending commit status yellow again (#25935) (#25968) 2 years ago
commit_statuses.tmpl Button and color enhancements (#24989) (#25176) 2 years ago
commits.tmpl Fix some UI alignments (#25277) (#25290) 2 years ago
commits_list.tmpl Several fixes for mobile UI (#25634) (#25689) 2 years ago
commits_list_small.tmpl Use flex to align SVG and text (#25163) (#25260) 2 years ago
commits_table.tmpl Fix commit compare style (#26209) (#26226) 2 years ago
create.tmpl Fix incorrect "tabindex" attributes (#26733) (#26734) 1 year ago
create_helper.tmpl Add templates to customize text when creating and migrating repositories 2 years ago
empty.tmpl Fix UI on mobile view (#25315) (#25340) 2 years ago
file_info.tmpl Show if File is Executable (#25287) (#25300) 2 years ago
forks.tmpl Remove fomantic ".link" selector and styles (#23888) 2 years ago
graph.tmpl Replace remaining fontawesome dropdown icons with SVG (#24455) 2 years ago
header.tmpl Clarify "text-align" CSS helpers, fix clone button padding (#25763) (#25764) 2 years ago
home.tmpl Hide `add file` button for pull mirrors (#25748) (#25751) 2 years ago
icon.tmpl Move helpers to be prefixed with `gt-` (#22879) 2 years ago
packages.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
release_tag_header.tmpl Fix incorrect release count (#25879) (#25887) 2 years ago
search.tmpl Use data-tooltip-content for tippy tooltip (#23649) 2 years ago
search_name.tmpl Clean template/helper.go (#23922) 2 years ago
shabox_badge.tmpl Fix shabox regression (#22924) 2 years ago
sub_menu.tmpl Fix tags header and pretty format numbers (#25624) (#25694) 2 years ago
unicode_escape_prompt.tmpl Clarify "text-align" CSS helpers, fix clone button padding (#25763) (#25764) 2 years ago
upload.tmpl Refactor `i18n` to `locale` (#20153) 3 years ago
user_cards.tmpl Change `join_on` translation to `joined_on` and include placeholder for the date (#24550) 2 years ago
view_file.tmpl Button and color enhancements (#24989) (#25176) 2 years ago
view_list.tmpl Various UI fixes (#25264) (#25431) 2 years ago
watchers.tmpl Fix user-cards format (#24428) 2 years ago