From 398809b135742ad8a7441f65fa7d0ccec318bd91 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 14 Mar 2014 02:40:07 -0400 Subject: [PATCH] Combine UI and data in repo home page --- templates/repo/single.tmpl | 54 +++++++++----------------------------- web.go | 1 + 2 files changed, 13 insertions(+), 42 deletions(-) diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl index 54d06aed40..4a71ad3465 100644 --- a/templates/repo/single.tmpl +++ b/templates/repo/single.tmpl @@ -21,52 +21,22 @@ - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {{range .Files}} + + + + + + {{end}}
dir-1commit message
dir-2 commit message
dir-3commit message
file-1.txt177 Bcommit message
file-2.txt177 Bcommit message
file-3.txt177 Bcommit message
{{.Name}}{{.Message}}
-

Source Files:

- {{template "base/footer" .}} \ No newline at end of file diff --git a/web.go b/web.go index 1fa19afc17..f416d96e86 100644 --- a/web.go +++ b/web.go @@ -40,6 +40,7 @@ var AppHelpers template.FuncMap = map[string]interface{}{ "AppVer": func() string { return APP_VER }, + "TimeSince": base.TimeSince, } func runWeb(*cli.Context) {