2014-03-13 00:15:58 -04:00
|
|
|
{{template "base/head" .}}
|
|
|
|
{{template "base/navbar" .}}
|
2014-03-13 02:08:49 -04:00
|
|
|
{{template "repo/nav" .}}
|
2014-03-13 00:15:58 -04:00
|
|
|
{{template "repo/toolbar" .}}
|
|
|
|
<div id="gogs-body" class="container">
|
2014-03-14 02:17:29 -04:00
|
|
|
<div id="gogs-source">
|
|
|
|
<div id="gogs-source-toolbar">
|
|
|
|
<button class="btn btn-default pull-right"><i class="fa fa-plus-square"></i>Add File</button>
|
|
|
|
<div class="dropdown branch-switch">
|
|
|
|
<a href="#" class="btn btn-success dropdown-toggle" data-toggle="dropdown"><i class="fa fa-chain"></i>master
|
|
|
|
<b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
2014-03-16 03:41:22 -04:00
|
|
|
<li><a class="current" href="/{{.RepositoryLink}}/tree/master">master</a></li>
|
|
|
|
<li><a href="/{{.RepositoryLink}}/tree/develop">develop</a></li>
|
2014-03-14 02:17:29 -04:00
|
|
|
</ul>
|
|
|
|
</div>
|
2014-03-14 11:57:14 -04:00
|
|
|
{{$paths := .Paths}}
|
2014-03-14 11:54:16 -04:00
|
|
|
{{ $username := .Username}}
|
|
|
|
{{ $reponame := .Reponame}}
|
|
|
|
{{ $branchname := .Branchname}}
|
|
|
|
{{ $treenames := .Treenames}}
|
|
|
|
{{ $n := len $treenames}}
|
|
|
|
{{ $l := Subtract $n 1}}
|
2014-03-14 11:57:14 -04:00
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li class="root dir"><a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}">{{.Repository.Name}}</a></li>
|
2014-03-14 11:54:16 -04:00
|
|
|
{{range $i, $v := $treenames}}
|
|
|
|
<li class="dir">
|
|
|
|
{{if eq $i $l}}{{$v}}
|
|
|
|
{{else}}
|
|
|
|
<a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}/{{index $paths $i}}">{{$v}}</a>
|
|
|
|
{{end}}</li>
|
|
|
|
{{end}}
|
2014-03-14 02:17:29 -04:00
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
<table id="gogs-source-table" class="table table-hover">
|
|
|
|
<thead class="hidden">
|
2014-03-14 02:40:07 -04:00
|
|
|
<tr>
|
|
|
|
<th class="name">Filename</th>
|
|
|
|
<th class="date">Date modified</th>
|
|
|
|
<th class="text">Message</th>
|
|
|
|
</tr>
|
2014-03-14 02:17:29 -04:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2014-03-14 02:40:07 -04:00
|
|
|
{{range .Files}}
|
|
|
|
<tr {{if .IsDir}}class="is-dir"{{end}}>
|
2014-03-14 11:54:16 -04:00
|
|
|
<td class="name"><i class="fa {{if .IsDir}}fa-folder{{else}}fa-file{{end}}"></i>
|
|
|
|
{{if .IsDir}}
|
|
|
|
<a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}/{{.Path}}">{{.Name}}</a>
|
|
|
|
{{else}}
|
2014-03-16 03:41:22 -04:00
|
|
|
<a href="/{{$username}}/{{$reponame}}/blob/{{$branchname}}/{{.Name}}">{{.Name}} - {{FileSize .Size}}</a>
|
2014-03-14 11:54:16 -04:00
|
|
|
{{end}}</td>
|
2014-03-14 02:40:07 -04:00
|
|
|
<td class="date"><time datetime="{{.Created}}" data-title="true" title="{{.Created}}">{{TimeSince .Created}}</time></td>
|
|
|
|
<td class="text">{{.Message}}</td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
2014-03-14 02:17:29 -04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-03-13 00:15:58 -04:00
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|