From 1cfe36ab6e8ec590d0af5412a2c1019c849afd4f Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Sat, 7 May 2022 09:56:19 +0800 Subject: [PATCH] fix issue --- templates/repo/cloudbrain/models/dir_list.tmpl | 3 +- templates/repo/view_list.tmpl | 306 ++++++++++++++++++++++++- 2 files changed, 307 insertions(+), 2 deletions(-) diff --git a/templates/repo/cloudbrain/models/dir_list.tmpl b/templates/repo/cloudbrain/models/dir_list.tmpl index f7aaee009..4c87d3d83 100755 --- a/templates/repo/cloudbrain/models/dir_list.tmpl +++ b/templates/repo/cloudbrain/models/dir_list.tmpl @@ -20,8 +20,9 @@ {{.ModTime}} + {{end}} -{{end}} +{{end}} \ No newline at end of file diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 98f61ca6e..6fb685cd5 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -1,3 +1,54 @@ + @@ -59,6 +110,7 @@ {{range $item := .Files}} {{$entry := index $item 0}} {{$commit := index $item 1}} + {{if $entry.IsSubModule}} {{else}} - + + + {{end}}
@@ -73,7 +125,7 @@ + {{TimeSince $commit.Committer.When $.Lang}}
{{if .ReadmeExist}} {{template "repo/view_file" .}} {{end}} + + +
+ +
+ + \ No newline at end of file