aboutsummaryrefslogtreecommitdiffstats
path: root/routers/dashboard.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-02-14 20:14:22 -0500
committerUnknown <joe2010xtmf@163.com>2014-02-14 20:14:22 -0500
commitb1c5adc2f206b855ccf19eaf492fd86a86e2befc (patch)
tree014dc7adb77b4670bc4254738dec561c4e7035ef /routers/dashboard.go
parent8ef198dface6a4e7b851ea495e236450f40ad1dc (diff)
downloadgitea-b1c5adc2f206b855ccf19eaf492fd86a86e2befc.tar.gz
gitea-b1c5adc2f206b855ccf19eaf492fd86a86e2befc.zip
Setup templates structure
Diffstat (limited to 'routers/dashboard.go')
-rw-r--r--routers/dashboard.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/routers/dashboard.go b/routers/dashboard.go
new file mode 100644
index 0000000000..8c370027bc
--- /dev/null
+++ b/routers/dashboard.go
@@ -0,0 +1,15 @@
+// Copyright 2014 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package routers
+
+import (
+ "github.com/martini-contrib/render"
+)
+
+func Dashboard(r render.Render) {
+ r.HTML(200, "dashboard", map[string]interface{}{
+ "Title": "Dashboard",
+ })
+}