From 1574bbecb5b2856b2018d064a32d2e7f484a58b1 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 18 Feb 2023 14:16:43 +0530 Subject: cleaner titles by nilix --- templates/file.html | 22 ++++++++-------------- templates/head.html | 20 ++++++++++++++++++++ templates/index.html | 4 ---- templates/log.html | 4 ---- templates/refs.html | 4 ---- templates/repo.html | 5 ----- templates/tree.html | 6 +----- 7 files changed, 29 insertions(+), 36 deletions(-) (limited to 'templates') diff --git a/templates/file.html b/templates/file.html index 82a3384..8898786 100644 --- a/templates/file.html +++ b/templates/file.html @@ -1,29 +1,23 @@ {{ define "file" }} {{ template "head" . }} - {{.name }} — {{ .path }} - {{ template "repoheader" . }} {{ template "nav" . }}

{{ .path }}

- - - - - -
-
-            {{- range .linecount }}
+      
+
+ {{- range .linecount }} {{ . }} - {{- end -}} -
-
+ {{- end -}} + +
+
             {{- .content -}}
           
-
+
diff --git a/templates/head.html b/templates/head.html index 53487eb..08c572e 100644 --- a/templates/head.html +++ b/templates/head.html @@ -5,6 +5,26 @@ + {{ if .parent }} + {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/ + + {{ else if .path }} + {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .path }} + {{ else if .files }} + {{ .meta.Title }} — {{ .name }} ({{ .ref }}) + {{ else if .commit }} + {{ .meta.Title }} — {{ .name }}: {{ .commit.This }} + {{ else if .branches }} + {{ .meta.Title }} — {{ .name }}: refs + {{ else if .commits }} + {{ if .log }} + {{ .meta.Title }} — {{ .name }}: log + {{ else }} + {{ .meta.Title }} — {{ .name }} + {{ end }} + {{ else }} + {{ .meta.Title }} + {{ end }} {{ if and .servername .gomod }} {{ end }} diff --git a/templates/index.html b/templates/index.html index 8bff3d7..80c9e1d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,10 +2,6 @@ {{ template "head" . }} - - {{ .meta.Title }} - -

{{ .meta.Title }}

{{ .meta.Description }}

diff --git a/templates/log.html b/templates/log.html index 1ab6cbc..7d74cb3 100644 --- a/templates/log.html +++ b/templates/log.html @@ -2,10 +2,6 @@ {{ template "head" . }} - - {{ .name }} — log - - {{ template "repoheader" . }} {{ template "nav" . }} diff --git a/templates/refs.html b/templates/refs.html index 8480856..76add7d 100644 --- a/templates/refs.html +++ b/templates/refs.html @@ -2,10 +2,6 @@ {{ template "head" . }} - - {{ .name }} — refs - - {{ template "repoheader" . }} {{ template "nav" . }} diff --git a/templates/repo.html b/templates/repo.html index 1c700b5..1cd9b5c 100644 --- a/templates/repo.html +++ b/templates/repo.html @@ -1,10 +1,5 @@ {{ define "repo" }} - {{ .name }} - {{ if .parent }} - — {{ .parent }} - {{ end }} - {{ template "head" . }} {{ template "repoheader" . }} diff --git a/templates/tree.html b/templates/tree.html index 496dceb..c4b7e4f 100644 --- a/templates/tree.html +++ b/templates/tree.html @@ -1,10 +1,6 @@ {{ define "tree" }} - {{ .name }} - {{ if .parent }} - — {{ .parent }} - {{ end }} - + {{ template "head" . }} {{ template "repoheader" . }} -- cgit