mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-05 06:43:16 +00:00
91 lines
3.8 KiB
Cheetah
91 lines
3.8 KiB
Cheetah
{{template "base/head" .}}
|
|
{{template "base/navbar" .}}
|
|
{{template "repo/nav" .}}
|
|
{{template "repo/toolbar" .}}
|
|
<div id="gogs-body" class="container">
|
|
<div id="gogs-source">
|
|
<div class="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">
|
|
<li><a class="current" href="/{{.RepositoryLink}}/tree/master">master</a></li>
|
|
<li><a href="/{{.RepositoryLink}}/tree/develop">develop</a></li>
|
|
</ul>
|
|
</div>
|
|
{{$paths := .Paths}}
|
|
{{ $username := .Username}}
|
|
{{ $reponame := .Reponame}}
|
|
{{ $branchname := .Branchname}}
|
|
{{ $treenames := .Treenames}}
|
|
{{ $n := len $treenames}}
|
|
{{ $l := Subtract $n 1}}
|
|
<ol class="breadcrumb">
|
|
<li class="root dir"><a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}">{{.Repository.Name}}</a></li>
|
|
{{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}}
|
|
</ol>
|
|
</div>
|
|
<div class="panel panel-default info-box">
|
|
<div class="panel-heading info-head">
|
|
Merge branch 'release/1.1.1'
|
|
</div>
|
|
<div class="panel-body info-content">
|
|
slene authored 4 days ago
|
|
</div>
|
|
<table class="panel-footer table file-list">
|
|
<thead class="hidden">
|
|
<tr>
|
|
<th class="icon"></th>
|
|
<th class="name">Filename</th>
|
|
<th class="text">Message</th>
|
|
<th class="date">Date modified</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{range .Files}}
|
|
<tr {{if .IsDir}}class="is-dir"{{end}}>
|
|
<td class="icon">
|
|
<i class="fa {{if .IsDir}}fa-folder{{else}}fa-file-text-o{{end}}"></i>
|
|
</td>
|
|
<td class="name">
|
|
<span class="wrap">
|
|
{{if .IsDir}}
|
|
<a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}/{{.Path}}">{{.Name}}</a>
|
|
{{else}}
|
|
<a href="/{{$username}}/{{$reponame}}/blob/{{$branchname}}/{{.Name}}">{{.Name}}</a>
|
|
{{end}}
|
|
</span>
|
|
</td>
|
|
<td class="text">
|
|
<span class="wrap">
|
|
{{.Message}}
|
|
</span>
|
|
</td>
|
|
<td class="date">
|
|
<span class="wrap">
|
|
{{TimeSince .Created}}
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="panel panel-default file-content">
|
|
<div class="panel-heading file-head">
|
|
<i class="icon fa fa-book"></i> README.md
|
|
</div>
|
|
<div class="panel-body file-body markdown">
|
|
markdown content
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}} |