From 8dd07c0ddd99ae626a1ec8c06f75f27fed51269f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 26 Jul 2014 00:24:27 -0400 Subject: New UI merge in progress --- templates/repo/view_list.tmpl | 46 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 templates/repo/view_list.tmpl (limited to 'templates/repo/view_list.tmpl') diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl new file mode 100644 index 0000000000..26e7dd4597 --- /dev/null +++ b/templates/repo/view_list.tmpl @@ -0,0 +1,46 @@ + + + + + + + + {{if .HasParentPath}} + + + + + + + {{end}} + {{range $item := .Files}} + {{$entry := index $item 0}} + {{$commit := index $item 1}} + + + + + + + {{end}} + +
+ + + {{.LastCommit.Author.Name}}: + + + {{ShortSha .LastCommit.Id.String}} + {{.LastCommit.Summary}} + + {{TimeSince .LastCommit.Author.When .i18n.Lang}} +
..
+ + + {{$entry.Name}} + + {{$commit.Summary}} + {{TimeSince $commit.Committer.When $.i18n.Lang}}
+{{if .ReadmeExist}} + {{template "repo/view_file" .}} +{{end}} \ No newline at end of file -- cgit v1.2.3