From 9649b3ed2b252cab6ab4076d58814790582f07f0 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sat, 17 Dec 2022 12:46:09 +0530 Subject: templates: index rework --- templates/404.html | 6 +++++- templates/500.html | 6 +++++- templates/head.html | 1 + templates/index.html | 27 ++++++++++++--------------- templates/nav.html | 10 +++++----- 5 files changed, 28 insertions(+), 22 deletions(-) (limited to 'templates') diff --git a/templates/404.html b/templates/404.html index 931ea9b..8c40cd1 100644 --- a/templates/404.html +++ b/templates/404.html @@ -3,7 +3,11 @@ 404 {{ template "head" . }} - 404 — nothing like that here + {{ template "nav" . }} +
+

404 — nothing like that here.

+
+ {{ end }} diff --git a/templates/500.html b/templates/500.html index 72e784c..53c605f 100644 --- a/templates/500.html +++ b/templates/500.html @@ -3,7 +3,11 @@ 500 {{ template "head" . }} - 500 — something broke! + {{ template "nav" . }} +
+

500 — something broke!

+
+ {{ end }} diff --git a/templates/head.html b/templates/head.html index a128b6b..81ee777 100644 --- a/templates/head.html +++ b/templates/head.html @@ -3,6 +3,7 @@ + {{ end }} diff --git a/templates/index.html b/templates/index.html index 3ab82c7..690e2e1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,22 +7,19 @@

{{ .meta.Description }}

- {{ template "nav" . }}
- - - - - - - {{ range .info }} - - - - - - {{ end }} -
repositorydescriptionlast active
{{ .Name }}{{ .Desc }}{{ .Idle }}
+
+
repository
+
description
+
idle
+
+
+ {{ range .info }} +
{{ .Name }}
+
{{ .Desc }}
+
{{ .Idle }}
+ {{ end }} +
diff --git a/templates/nav.html b/templates/nav.html index 973eae2..d0d384d 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -4,12 +4,12 @@
  • all repos {{ if .name }}
  • {{ .name }} - {{ end }} - {{ if .ref }} -
  • tree -
  • log - {{ end }}
  • refs + {{ if .ref }} +
  • tree +
  • log + {{ end }} + {{ end }} {{ end }} -- cgit v1.2.3