From d0d636aa89bf194185abf01e05b190386d0e8b23 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 18 Dec 2022 20:00:19 +0530 Subject: all: go-import, clone url --- templates/commit.html | 7 +++++-- templates/head.html | 3 +++ templates/repo.html | 12 ++++++++++-- 3 files changed, 18 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/commit.html b/templates/commit.html index 9ab945a..1b4a8d9 100644 --- a/templates/commit.html +++ b/templates/commit.html @@ -10,8 +10,11 @@
           {{- .commit.Message -}}
         
-

{{ .commit.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}

-

{{ .commit.Author.Name }} {{ .commit.Author.Email}}

+
+ {{ .commit.Author.Name }} {{ .commit.Author.Email}} +
{{ .commit.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
+
+

commit: {{ .commit.This }} diff --git a/templates/head.html b/templates/head.html index 81ee777..0bde52e 100644 --- a/templates/head.html +++ b/templates/head.html @@ -4,6 +4,9 @@ + {{ if .goimport }} + {{ .goimport }} + {{ end }} {{ end }} diff --git a/templates/repo.html b/templates/repo.html index 687cafe..8dc5f54 100644 --- a/templates/repo.html +++ b/templates/repo.html @@ -25,12 +25,20 @@ {{ end }} - +{{- if .readme }}

-          {{- if .readme }}{{ .readme }}{{- end -}}
+          {{- .readme -}}
         
+{{- end -}} + +
+ clone +
+git clone {{ .clone -}}
+        
+
-- cgit v1.2.3