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.log.html
-rw-r--r--
1808
 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="3">
14          <div class="ellipsis"><b>Date</b></div>
15        </r-cell>
16        <r-cell span="8">
17          <div class="ellipsis"><b>Commit</b></div>
18        </r-cell>
19        <r-cell span="2">
20          <div class="ellipsis"><b>Author</b></div>
21        </r-cell>
22        <r-cell span="1">
23          <div align="right">
24            <div class="ellipsis"><b>Files</b></div>
25          </div>
26        </r-cell>
27        <r-cell span="1">
28          <div align="right">
29            <b>-</b>
30          </div>
31        </r-cell>
32        <r-cell span="1">
33          <div align="right">
34            <b>-</b>
35          </div>
36        </r-cell>
37
38        {{ range .Commits }}
39        <r-cell span="3">
40          <div class="ellipsis">{{ .Date }}</div>
41        </r-cell>
42        <r-cell span="8">
43          <div class="ellipsis">
44            <a href="{{ $.RepoData.BaseURL }}{{ $.RepoData.Name }}/commit/{{ .Hash }}">
45              {{ .Message }}
46            </a>
47          </div>
48        </r-cell>
49        <r-cell span="2">
50          <div class="ellipsis">{{ .Author }}</div>
51        </r-cell>
52        <r-cell span="1">
53          <div align="right" class="ellipsis">
54            {{ .FileChangeCount }}
55          </div>
56        </r-cell>
57        <r-cell span="1">
58          <div align="right" class="ellipsis">
59            {{ .LinesAdded }}
60          </div>
61        </r-cell>
62        <r-cell span="1">
63          <div align="right" class="ellipsis">
64            {{ .LinesDeleted }}
65          </div>
66        </r-cell>
67        {{ end }}
68      </r-grid>
69    </div>
70  </div>
71</body>
72
73</html>