-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.file.html
43 lines (40 loc) · 1020 Bytes
/
template.file.html
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
43
<!DOCTYPE html>
<html lang="en">
<head>
{{ template "head" .RepoData.HeadData }}
</head>
<body>
<div class="content">
{{ template "metadata" .RepoData }}
<div style="padding-bottom: 10px;">
<a href="{{ .RepoData.HeadData.BaseURL }}{{ .RepoData.Name }}/files.html">
<span>
←
All files
</span>
</a>
</div>
<r-grid columns="12" style="gap: 2px; padding-bottom: 4px;">
<r-cell span="9">
<div class="ellipsis">
<b>name: </b>
<span class="mono">{{ .Name }}</span>
</div>
</r-cell>
<r-cell span="2">
<div align="right" class="mono ellipsis">{{ .Mode }}</div>
</r-cell>
<r-cell span="1">
<div align="right" class="mono ellipsis">{{ .Size }}</div>
</r-cell>
</r-grid>
<div>
{{ if .CanRender }}
{{ .Content }}
{{ else }}
Cannot preview file with extension <code>{{ .Extension }}</code>
{{ end }}
</div>
</div>
</body>
</html>