diff options
author | yp05327 <576951401@qq.com> | 2023-08-05 00:49:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 15:49:43 +0000 |
commit | e5011a0e6d74071adfa17fd806234fd9108cb867 (patch) | |
tree | b0db302f31b63cb33892c46e93b9f65511927ffc /templates/repo | |
parent | 945a0cb96b26d75868e6b52405afeb4e078eb279 (diff) | |
download | gitea-e5011a0e6d74071adfa17fd806234fd9108cb867.tar.gz gitea-e5011a0e6d74071adfa17fd806234fd9108cb867.zip |
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.


Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/commit_load_branches_and_tags.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/commit_load_branches_and_tags.tmpl b/templates/repo/commit_load_branches_and_tags.tmpl index c19aa55c56..4d90696cb4 100644 --- a/templates/repo/commit_load_branches_and_tags.tmpl +++ b/templates/repo/commit_load_branches_and_tags.tmpl @@ -1,3 +1,4 @@ +{{if not .PageIsWiki}} <div class="branch-and-tag-area" data-text-default-branch-tooltip="{{.locale.Tr "repo.commit.contained_in_default_branch"}}"> <button class="ui button ellipsis-button load-branches-and-tags gt-mt-3" aria-expanded="false" data-fetch-url="{{.RepoLink}}/commit/{{.CommitID}}/load-branches-and-tags" @@ -16,3 +17,4 @@ </div> </div> </div> +{{end}} |