unified name: IsViewBranch, IsViewCommit and IsViewTag
This commit is contained in:
parent
989f30eb41
commit
a576224d0e
9 changed files with 18 additions and 21 deletions
|
@ -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 + "/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue