commit
message
Better styles for main index page
author
Ben Vogt <[email protected]>
date
2023-04-06 19:01:27
stats
2 file(s) changed,
14 insertions(+),
13 deletions(-)
files
file.go
template.index.html
1diff --git a/file.go b/file.go
2index ebf3f3c..41d6567 100644
3--- a/file.go
4+++ b/file.go
5@@ -24,7 +24,7 @@ type FilePage struct {
6 }
7
8 func (f *FilePage) RenderPage(t *template.Template) {
9- debug("file %v%v", f.RepoData.Name, f.Name)
10+ debug("file %v %v", f.RepoData.Name, f.Name)
11 err := os.MkdirAll(f.DestinationDir, 0775)
12 checkErr(err)
13 err = os.MkdirAll(filepath.Dir(f.Destination), 0775)
14diff --git a/template.index.html b/template.index.html
15index a527cd9..c4f47f4 100644
16--- a/template.index.html
17+++ b/template.index.html
18@@ -12,27 +12,29 @@
19 </div>
20 <div>
21 <div class="metadata">
22- <r-grid columns="12">
23- <r-cell span="2">
24+ <r-grid columns="20" style="gap: 2px;">
25+ <r-cell span="5">
26 <b>Name</b>
27 </r-cell>
28- <r-cell span="7">
29+ <r-cell span="8">
30 <b>Description</b>
31 </r-cell>
32- <r-cell span="3">
33+ <r-cell span="7">
34 <b>Git</b>
35 </r-cell>
36
37 {{ range .Repos }}
38- <r-cell span="2">
39- <a href="{{ $.HeadData.BaseURL }}{{ .Name }}/log.html">
40- {{ .Name }}
41- </a>
42+ <r-cell span="5">
43+ <div class="ellipsis">
44+ <a href="{{ $.HeadData.BaseURL }}{{ .Name }}/log.html">
45+ {{ .Name }}
46+ </a>
47+ </div>
48 </r-cell>
49- <r-cell span="7">
50- <div>{{ .Description }}</div>
51+ <r-cell span="8">
52+ <div class="ellipsis">{{ .Description }}</div>
53 </r-cell>
54- <r-cell span="3">
55+ <r-cell span="7">
56 <div class="ellipsis">
57 {{ if .HostGit }}
58 <a class="mono" href="{{ .BaseURL }}{{ .Name }}.git">