From f4ff8fe6eb20ab5b557d7beac095959890e126e8 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 20 Feb 2024 00:24:38 +0000 Subject: fix routes --- templates/commit.html | 147 +++++++++++++++++++++++++------------------------- 1 file changed, 75 insertions(+), 72 deletions(-) (limited to 'templates/commit.html') diff --git a/templates/commit.html b/templates/commit.html index c1def17..3e6ec5e 100644 --- a/templates/commit.html +++ b/templates/commit.html @@ -2,74 +2,76 @@ {{ template "head" . }} - {{ template "repoheader" . }} - - {{ template "nav" . }} -
-
-
-          {{- .commit.Message -}}
-        
-
- {{ .commit.Author.Name }} {{ .commit.Author.Email}} +{{ template "repoheader" . }} + + + {{ template "nav" . }} +
+
+
+        {{- .commit.Message -}}
+      
+
+ {{ .commit.Author.Name }} {{ + .commit.Author.Email}}
{{ .commit.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
-
+
-
+
commit -

- {{ .commit.This }} - +

+ {{ .commit.This }} +

-
+
- {{ if .commit.Parent }} -
+ {{ if .commit.Parent }} +
parent -

- {{ .commit.Parent }} -

-
+

+ {{ .commit.Parent }} +

+
- {{ end }} -
-
+ {{ end }} +
+
{{ .stat.FilesChanged }} files changed, {{ .stat.Insertions }} insertions(+), {{ .stat.Deletions }} deletions(-) -
-
-
- jump to - {{ range .diff }} -
    +
+
+
+ jump to + {{ range .diff }} + - {{ end }} -
+ + {{ end }}
-
-
- {{ $repo := .name }} - {{ $this := .commit.This }} - {{ $parent := .commit.Parent }} - {{ range .diff }} -
-
- {{ if .IsNew }} - A - {{ end }} - {{ if .IsDelete }} - D - {{ end }} - {{ if not (or .IsNew .IsDelete) }} - M - {{ end }} +
+
+
+ {{ $repo := .repo }} + {{ $this := .commit.This }} + {{ $parent := .commit.Parent }} + {{ range .diff }} +
+
+ {{ if .IsNew }} + A + {{ end }} + {{ if .IsDelete }} + D + {{ end }} + {{ if not (or .IsNew .IsDelete) }} + M + {{ end }} {{ if .Name.Old }} {{ .Name.Old }} {{ if .Name.New }} - → - {{ .Name.New }} + → + {{ .Name.New }} {{ end }} {{ else }} {{ .Name.New }} @@ -77,28 +79,29 @@ {{ if .IsBinary }}

Not showing binary file.

{{ else }} -
+          
             {{- range .TextFragments -}}
             

{{- .Header -}}

{{- range .Lines -}} - {{- if eq .Op.String "+" -}} - {{ .String }} - {{- end -}} - {{- if eq .Op.String "-" -}} - {{ .String }} - {{- end -}} - {{- if eq .Op.String " " -}} - {{ .String }} - {{- end -}} + {{- if eq .Op.String "+" -}} + {{ .String }} {{- end -}} + {{- if eq .Op.String "-" -}} + {{ .String }} {{- end -}} - {{- end -}} -
-
-
- {{ end }} -
-
- + {{- if eq .Op.String " " -}} + {{ .String }} + {{- end -}} + {{- end -}} + {{- end -}} + {{- end -}} + + + + {{ end }} + + + + -{{ end }} +{{ end }} \ No newline at end of file -- cgit