From e246f2188ec1d2a7582bd9964abbe5f3d2ee2ee9 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 7 Mar 2014 11:14:51 +0800 Subject: add list for repo basic --- templates/repo/create.tmpl | 4 ++-- templates/repo/list.tmpl | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 templates/repo/list.tmpl (limited to 'templates/repo') diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index a3ad06df0d..809637c4eb 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -6,8 +6,8 @@
-

Owner-name

- +

{{.UserName}}

+
diff --git a/templates/repo/list.tmpl b/templates/repo/list.tmpl new file mode 100644 index 0000000000..2c5432a174 --- /dev/null +++ b/templates/repo/list.tmpl @@ -0,0 +1,10 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +
+
    + {{range .Repos}} +
  • {{.Name}} stars: {{.NumStars}} forks: {{.NumForks}} watches:{{.NumWatchs}}
  • + {{end}} +
+
+{{template "base/footer" .}} \ No newline at end of file -- cgit v1.2.3