name:
template.file.html
-rw-r--r--
1020
1<!DOCTYPE html>
2<html lang="en">
3
4<head>
5 {{ template "head" .RepoData.HeadData }}
6</head>
7
8<body>
9 <div class="content">
10 {{ template "metadata" .RepoData }}
11 <div style="padding-bottom: 10px;">
12 <a href="{{ .RepoData.HeadData.BaseURL }}{{ .RepoData.Name }}/files.html">
13 <span>
14 ←
15 All files
16 </span>
17 </a>
18 </div>
19 <r-grid columns="12" style="gap: 2px; padding-bottom: 4px;">
20 <r-cell span="9">
21 <div class="ellipsis">
22 <b>name: </b>
23 <span class="mono">{{ .Name }}</span>
24 </div>
25 </r-cell>
26 <r-cell span="2">
27 <div align="right" class="mono ellipsis">{{ .Mode }}</div>
28 </r-cell>
29 <r-cell span="1">
30 <div align="right" class="mono ellipsis">{{ .Size }}</div>
31 </r-cell>
32 </r-grid>
33 <div>
34 {{ if .CanRender }}
35 {{ .Content }}
36 {{ else }}
37 Cannot preview file with extension <code>{{ .Extension }}</code>
38 {{ end }}
39 </div>
40 </div>
41</body>
42
43</html>