diff --git a/appview/pages/templates/repo/log.html b/appview/pages/templates/repo/log.html index 59cbd109..d6ae3627 100644 --- a/appview/pages/templates/repo/log.html +++ b/appview/pages/templates/repo/log.html @@ -1,9 +1,10 @@ {{ define "title" }}commits · {{ .RepoInfo.FullName }}{{ end }} + {{ define "repoContent" }} - + Author Commit @@ -37,20 +38,13 @@ - {{ if eq $index 0 }} - - {{ index $messageParts 0 }} - {{ if gt (len $messageParts) 1 }}{{ nl2br (unwrapText (index $messageParts 1)) }}{{ end }} - - {{ else }} - - {{ index $messageParts 0 }} - {{ if gt (len $messageParts) 1 }} - {{ i "ellipsis" "w-3 h-3" }} - {{ nl2br (index $messageParts 1) }} - {{ end }} - - {{ end }} + + {{ index $messageParts 0 }} + {{ if gt (len $messageParts) 1 }} + {{ i "ellipsis" "w-3 h-3" }} + {{ nl2br (index $messageParts 1) }} + {{ end }} + {{ timeFmt $commit.Author.When }} @@ -92,7 +86,6 @@ {{ i "folder-code" "w-4 h-4" }} - @@ -120,9 +113,12 @@ - {{ $commits_len := len .Commits }} - - {{ if gt .Page 1 }}{{ i "chevron-left" "w-4 h-4" }} previous{{ else }}{{ end }} - {{ if eq $commits_len 60 }}next {{ i "chevron-right" "w-4 h-4" }}{{ end }} - +{{ end }} + +{{ define "repoAfter" }} + {{ $commits_len := len .Commits }} + + {{ if gt .Page 1 }}{{ i "chevron-left" "w-4 h-4" }} previous{{ else }}{{ end }} + {{ if eq $commits_len 60 }}next {{ i "chevron-right" "w-4 h-4" }}{{ end }} + {{ end }}
{{ index $messageParts 0 }}
{{ nl2br (unwrapText (index $messageParts 1)) }}
{{ nl2br (index $messageParts 1) }}