1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Hide/disable unusable UI elements when a repository is archived (#33459)

And by the way, remove some jQuery code
This commit is contained in:
wxiaoguang
2025-01-31 20:47:31 +08:00
committed by GitHub
parent 0e8738b4b6
commit 1ab5938e82
5 changed files with 73 additions and 72 deletions

View File

@@ -48,7 +48,9 @@
</div>
{{end}}
{{end}}
{{template "repo/issue/view_content/add_reaction" dict "ActionURL" (printf "%s/comments/%d/reactions" $.root.RepoLink .ID)}}
{{if not $.root.Repository.IsArchived}}
{{template "repo/issue/view_content/add_reaction" dict "ActionURL" (printf "%s/comments/%d/reactions" $.root.RepoLink .ID)}}
{{end}}
{{template "repo/issue/view_content/context_menu" dict "item" . "delete" true "issue" false "diff" true "IsCommentPoster" (and $.root.IsSigned (eq $.root.SignedUserID .PosterID))}}
</div>
</div>