Skip to content

Commit e5011a0

Browse files
yp05327GiteaBot
andauthored
Remove commit load branches and tags in wiki repo (#26304)
If click `load branches and tags`, you will get 500 error from backend, as it is a wiki repo. ![image](https://github.com/go-gitea/gitea/assets/18380374/1eb2a68b-cc72-4607-a1d1-4f74f83623f6) ![image](https://github.com/go-gitea/gitea/assets/18380374/c385de25-0cfb-4084-9452-d7e9d27deea9) Co-authored-by: Giteabot <[email protected]>
1 parent 945a0cb commit e5011a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/repo/commit_load_branches_and_tags.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{if not .PageIsWiki}}
12
<div class="branch-and-tag-area" data-text-default-branch-tooltip="{{.locale.Tr "repo.commit.contained_in_default_branch"}}">
23
<button class="ui button ellipsis-button load-branches-and-tags gt-mt-3" aria-expanded="false"
34
data-fetch-url="{{.RepoLink}}/commit/{{.CommitID}}/load-branches-and-tags"
@@ -16,3 +17,4 @@
1617
</div>
1718
</div>
1819
</div>
20+
{{end}}

0 commit comments

Comments
 (0)