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
yp05327 b693611b35
Don't show new pr button when page is not compare pull (#26431)
Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/ba69252f-3582-414a-9d62-b2b78d7035dd)
After:

![image](https://github.com/go-gitea/gitea/assets/18380374/71b8587c-b96e-48fb-b3e5-1a2a8b5d06fa)
(TestOrg:test is a tag not branch)

Problem:
In the template, we will not add `compare pull` class when
`PageIsComparePull` is false.

a370efc13f/templates/repo/diff/compare.tmpl (L2)
But in the js, we are using `.repository.compare.pull` to find the
button:

a370efc13f/web_src/js/features/repo-legacy.js (L552-L563)
So, if `PageIsComparePull` is false, the `New Pull Request` button will
be there, but has no response when we click it.
1 year ago
..
actions Fix the runs will not be displayed bug when the main branch have no workflows but other branches have (#28359) 1 year ago
branch Rework markup link rendering (#26745) 1 year ago
cite Update JS and PY dependencies (#27501) 1 year ago
code Fix more "locale" usages (#27259) 1 year ago
diff Don't show new pr button when page is not compare pull (#26431) 1 year ago
editor Revert "Fix EOL handling in web editor" (#28101) 1 year ago
find Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
graph Rework markup link rendering (#26745) 1 year ago
issue Revert adding htmx until we finaly decide to add it (#28879) 1 year ago
migrate Fix duplicate ID when deleting repo (#28520) 1 year ago
projects Use full width for project boards (#28225) 1 year ago
pulls Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
release Add download attribute to release attachments (#28739) 1 year ago
settings Add branch protection setting for ignoring stale approvals (#28498) 1 year ago
tag Fix more "locale" usages (#27259) 1 year ago
wiki Fix more "locale" usages (#27259) 1 year ago
activity.tmpl Render code block in activity tab (#28816) 1 year ago
blame.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
branch_dropdown.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
clone_buttons.tmpl Fix more "locale" usages (#27259) 1 year ago
clone_script.tmpl Rework button coloring, add focus and active colors (#24507) 2 years ago
commit_load_branches_and_tags.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
commit_page.tmpl Rework markup link rendering (#26745) 1 year ago
commit_status.tmpl Restore warning commit status (#27504) 1 year ago
commit_statuses.tmpl Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
commits.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
commits_list.tmpl Add support for sha256 repositories (#23894) 1 year ago
commits_list_small.tmpl Rework markup link rendering (#26745) 1 year ago
commits_table.tmpl Fix more "locale" usages (#27259) 1 year ago
create.tmpl Add support for sha256 repositories (#23894) 1 year ago
create_helper.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
empty.tmpl Fix more "locale" usages (#27259) 1 year ago
file_info.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
forks.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
graph.tmpl Fix more "locale" usages (#27259) 1 year ago
header.tmpl Add support for sha256 repositories (#23894) 1 year ago
home.tmpl Add word-break to repo description in home page (#27924) 1 year ago
icon.tmpl cleanup repo details icons/labels (#27644) 1 year ago
latest_commit.tmpl Show latest commit for file (#28067) 1 year ago
packages.tmpl Fix inconsistent user profile layout across tabs (#25625) 2 years ago
release_tag_header.tmpl Improve RSS feed icons (#28368) 1 year ago
search.tmpl Fix 500 error of searching commits (#28576) 1 year ago
search_name.tmpl Clean template/helper.go (#23922) 2 years ago
shabox_badge.tmpl cleanup locale function usage (#27227) 1 year ago
sub_menu.tmpl Enable followCursor for language stats bar (#27713) 1 year ago
unicode_escape_prompt.tmpl cleanup locale function usage (#27227) 1 year ago
upload.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
user_cards.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
view_file.tmpl Show latest commit for file (#28067) 1 year ago
view_list.tmpl Show latest commit for file (#28067) 1 year ago
watchers.tmpl Fix user-cards format (#24428) 2 years ago