From 5091695e75b2db30b8926d8aa17164c84031bc77 Mon Sep 17 00:00:00 2001
From: Anirudh Oppiliappan
Date: Sat, 17 Dec 2022 21:33:04 +0530
Subject: templates: repo and log
---
templates/index.html | 2 +-
templates/log.html | 18 ++++++++++-------
templates/nav.html | 3 +--
templates/repo.html | 56 +++++++++++++++++++---------------------------------
templates/tree.html | 53 +++++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 86 insertions(+), 46 deletions(-)
create mode 100644 templates/tree.html
(limited to 'templates')
diff --git a/templates/index.html b/templates/index.html
index 02c62ef..25cedfb 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -16,7 +16,7 @@
{{ range .info }}
-
{{ .Desc }}
+
{{ .Desc }}
{{ .Idle }}
{{ end }}
diff --git a/templates/log.html b/templates/log.html
index de7b200..c4ee9c3 100644
--- a/templates/log.html
+++ b/templates/log.html
@@ -9,13 +9,17 @@
{{ template "nav" . }}
- {{ $repo := .name }}
- {{ range .commits }}
- {{ slice .Hash.String 0 8 }}
- — {{ .Author.Name }}
- {{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
- {{ .Message }}
- {{ end }}
+ {{ $repo := .repo }}
+
+ {{ range .commits }}
+
+
+
{{ .Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
+
{{ .Message }}
+
+
{{ .Author.Name }} {{ .Author.Email }}
+ {{ end }}
+