aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/single.tmpl
blob: 4a71ad3465dbd7b2472450e3f042d7d8ec6b5038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{{template "base/head" .}}
{{template "base/navbar" .}}
{{template "repo/nav" .}}
{{template "repo/toolbar" .}}
<div id="gogs-body" class="container">
    <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&nbsp;&nbsp;
                    <b class="caret"></b></a>
                <ul class="dropdown-menu">
                    <li><a class="current" href="/{{.RepositoryLink}}/branch/master">master</a></li>
                    <li><a href="//{{.RepositoryLink}}/branch/develop">develop</a></li>
                </ul>
            </div>
            <ol class="breadcrumb">
                <li class="root dir">{{.Repository.Name}}</li>
                <li class="dir">Dir</li>
            </ol>
        </div>
        <table id="gogs-source-table" class="table table-hover">
            <thead class="hidden">
	            <tr>
	                <th class="name">Filename</th>
	                <th class="date">Date modified</th>
	                <th class="text">Message</th>
	            </tr>
            </thead>
            <tbody>
    			{{range .Files}}
				<tr {{if .IsDir}}class="is-dir"{{end}}>
	                <td class="name"><i class="fa fa-file"></i><a href="#">{{.Name}}</a></td>
	                <td class="date"><time datetime="{{.Created}}" data-title="true" title="{{.Created}}">{{TimeSince .Created}}</time></td>
	                <td class="text">{{.Message}}</td>
				</tr>
    			{{end}}
            </tbody>
        </table>
    </div>
</div>
{{template "base/footer" .}}