From 52b4ab2aa589cf892b24e95872cbac7b6e78ed3a Mon Sep 17 00:00:00 2001 From: slene Date: Sun, 13 Apr 2014 09:35:36 +0800 Subject: update with new git --- templates/repo/single_list.tmpl | 63 ++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 33 deletions(-) (limited to 'templates/repo/single_list.tmpl') diff --git a/templates/repo/single_list.tmpl b/templates/repo/single_list.tmpl index b0c31d1e..b12687bd 100644 --- a/templates/repo/single_list.tmpl +++ b/templates/repo/single_list.tmpl @@ -1,6 +1,6 @@
{{.LastCommit.Author.Name}} {{TimeSince .LastCommit.Author.When}} @@ -15,40 +15,37 @@ - {{if .HasParentPath}} - - - .. - - - - {{end}} - {{range .Files}} - - - - - - - {{if .IsDir}} - {{.Name}} - {{else}} - {{.Name}} - {{end}} - - - - {{.Commit.Message}} - - - {{TimeSince .Commit.Committer.When}} - - - {{end}} + {{if .HasParentPath}} + + + .. + + + + {{end}} + {{range $item := .Files}} + {{$entry := index $item 0}} + {{$commit := index $item 1}} + + + + + + + {{$entry.Name}} + + + + {{$commit.Message}} + + + {{TimeSince $commit.Committer.When}} + + + {{end}}
{{if .ReadmeExist}} {{template "repo/single_file" .}} -{{end}} \ No newline at end of file +{{end}} -- cgit v1.2.3