gshr
git static host repo -- generates static html for repos
git clone https://git.vogt.world/gshr.git
Log | Files | README.md | LICENSE
← All files
name: template.files.html
-rw-r--r--
1099
 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 class="mono">
12      <r-grid columns="16">
13        <r-cell span="11">
14          <div class="ellipsis"><b>Name</b></div>
15        </r-cell>
16        <r-cell span="3">
17          <div align="right" class="ellipsis"><b>Mode</b></div>
18        </r-cell>
19        <r-cell span="2">
20          <div align="right" class="ellipsis"><b>Size</b></div>
21        </r-cell>
22        {{ range .Files }}
23        <r-cell span="11">
24          <div class="ellipsis">
25            <a
26               href="{{ $.RepoData.HeadData.BaseURL }}{{ $.RepoData.Name }}/files/{{ .Name }}/index.html">
27              {{ .Name }}
28            </a>
29          </div>
30        </r-cell>
31        <r-cell span="3">
32          <div align="right" class="ellipsis">{{ .Mode }}</div>
33        </r-cell>
34        <r-cell span="2">
35          <div align="right" class="ellipsis">{{ .Size }}</div>
36        </r-cell>
37        {{ end }}
38      </r-grid>
39    </div>
40  </div>
41</body>
42
43</html>