0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-10-30 10:49:09 +01:00
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.
2024-01-21 15:13:00 +00:00
..
actions Fix the runs will not be displayed bug when the main branch have no workflows but other branches have (#28359) 2023-12-06 01:13:59 +00:00
branch Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
cite
code
diff Don't show new pr button when page is not compare pull (#26431) 2024-01-21 15:13:00 +00:00
editor Revert "Fix EOL handling in web editor" (#28101) 2023-11-22 09:14:16 +00:00
find
graph Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
issue Revert adding htmx until we finaly decide to add it (#28879) 2024-01-21 21:42:35 +08:00
migrate Fix duplicate ID when deleting repo (#28520) 2023-12-19 04:40:05 +00:00
projects Use full width for project boards (#28225) 2023-11-27 17:43:52 +00:00
pulls Add Hide/Show all checks button to commit status check (#26284) 2023-11-02 14:49:02 +00:00
release Add download attribute to release attachments (#28739) 2024-01-09 16:51:20 +08:00
settings Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
tag
wiki
activity.tmpl Render code block in activity tab (#28816) 2024-01-16 22:38:09 +08:00
blame.tmpl
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl
commit_load_branches_and_tags.tmpl
commit_page.tmpl Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
commit_status.tmpl
commit_statuses.tmpl Add Hide/Show all checks button to commit status check (#26284) 2023-11-02 14:49:02 +00:00
commits.tmpl
commits_list.tmpl Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
commits_list_small.tmpl Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
commits_table.tmpl
create.tmpl Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
create_helper.tmpl
empty.tmpl
file_info.tmpl
forks.tmpl
graph.tmpl
header.tmpl Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
home.tmpl Add word-break to repo description in home page (#27924) 2023-11-07 23:52:08 +00:00
icon.tmpl
latest_commit.tmpl Show latest commit for file (#28067) 2024-01-15 17:42:15 +01:00
packages.tmpl
release_tag_header.tmpl Improve RSS feed icons (#28368) 2023-12-06 20:29:26 +00:00
search.tmpl Fix 500 error of searching commits (#28576) 2023-12-21 23:09:14 +00:00
search_name.tmpl
shabox_badge.tmpl
sub_menu.tmpl Enable followCursor for language stats bar (#27713) 2023-10-22 13:06:04 +00:00
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl
view_file.tmpl Show latest commit for file (#28067) 2024-01-15 17:42:15 +01:00
view_list.tmpl Show latest commit for file (#28067) 2024-01-15 17:42:15 +01:00
watchers.tmpl