mirror of https://github.com/gogits/gogs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.7 KiB
44 lines
1.7 KiB
{{template "base/head" .}} |
|
{{template "base/navbar" .}} |
|
{{template "repo/nav" .}} |
|
{{template "repo/toolbar" .}} |
|
<div id="gogs-body" class="container"> |
|
<div id="gogs-source"> |
|
{{if .IsBareRepo}} |
|
{{template "repo/single_bare" .}} |
|
{{else}} |
|
<div class="source-toolbar"> |
|
{{ $n := len .Treenames}} |
|
{{if not .IsFile}}<button class="btn btn-default pull-right"><i class="fa fa-plus-square"></i>Add File</button>{{end}} |
|
<div class="dropdown branch-switch"> |
|
<a href="#" class="btn btn-success dropdown-toggle" data-toggle="dropdown"><i class="fa fa-chain"></i>{{.Branchname}} |
|
<b class="caret"></b></a> |
|
<ul class="dropdown-menu"> |
|
{{range .Branches}} |
|
<li><a {{if eq . $.Branchname}}class="current" {{end}}href="/{{$.Username}}/{{$.Reponame}}/src/{{.}}">{{.}}</a></li> |
|
{{end}} |
|
</ul> |
|
</div> |
|
{{ $l := Subtract $n 1}} |
|
<ol class="breadcrumb"> |
|
<li class="root dir"> |
|
<a href="{{.BranchLink}}">{{.Repository.Name}}</a></li> |
|
{{range $i, $v := .Treenames}} |
|
<li class="dir"> |
|
{{if eq $i $l}}{{$v}} |
|
{{else}} |
|
<a href="{{$.BranchLink}}/{{index $.Paths $i}}">{{$v}}</a> |
|
{{end}} |
|
</li> |
|
{{end}} |
|
</ol> |
|
</div> |
|
{{if .IsFile}} |
|
{{template "repo/single_file" .}} |
|
{{else}} |
|
{{template "repo/single_list" .}} |
|
{{end}} |
|
{{end}} |
|
</div> |
|
</div> |
|
{{template "base/footer" .}} |