fix link
This commit is contained in:
parent
4c70249f75
commit
b1627672f9
2 changed files with 4 additions and 1 deletions
|
@ -140,6 +140,9 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
|
||||||
branchName = "master"
|
branchName = "master"
|
||||||
goto detect
|
goto detect
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ctx.Data["IsBranch"] = ctx.Repo.IsBranch
|
||||||
|
ctx.Data["IsCommit"] = ctx.Repo.IsCommit
|
||||||
}
|
}
|
||||||
|
|
||||||
// repo is bare and display enable
|
// repo is bare and display enable
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
{{ $n := len .Treenames}}
|
{{ $n := len .Treenames}}
|
||||||
{{if not .IsFile}}<button class="btn btn-default pull-right hidden"><i class="fa fa-plus-square"></i>Add File</button>{{end}}
|
{{if not .IsFile}}<button class="btn btn-default pull-right hidden"><i class="fa fa-plus-square"></i>Add File</button>{{end}}
|
||||||
<div class="dropdown branch-switch">
|
<div class="dropdown branch-switch">
|
||||||
<a href="#" class="btn btn-success dropdown-toggle" data-toggle="dropdown"><i class="fa fa-chain"></i>{{if .CommitId}}{{ShortSha .CommitId}}{{else}}{{.BranchName}}{{end}}
|
<a href="#" class="btn btn-success dropdown-toggle" data-toggle="dropdown"><i class="fa fa-chain"></i>{{if .IsBranch}}{{.BranchName}}{{else}}{{ShortSha .CommitId}}{{end}}
|
||||||
<b class="caret"></b></a>
|
<b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
{{range .Branches}}
|
{{range .Branches}}
|
||||||
|
|
Loading…
Reference in a new issue