mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
unified name: IsViewBranch, IsViewCommit and IsViewTag
This commit is contained in:
@@ -53,9 +53,6 @@ func Home(ctx *middleware.Context) {
|
||||
treeLink += "/" + treename
|
||||
}
|
||||
|
||||
isViewBranch := ctx.Repo.IsBranch
|
||||
ctx.Data["IsViewBranch"] = isViewBranch
|
||||
|
||||
treePath := treename
|
||||
if len(treePath) != 0 {
|
||||
treePath = treePath + "/"
|
||||
|
Reference in New Issue
Block a user