summaryrefslogtreecommitdiffstats
path: root/routers/dev
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-18 11:03:03 +0800
committerGitHub <noreply@github.com>2016-11-18 11:03:03 +0800
commitcf045b029cc11dc48c3a626441b7017710088823 (patch)
treef234f8ad8b8a548bda4c9d372ca5b9af95b0b40b /routers/dev
parent91953ae9b421300eef79d58891dec7f2026e5d53 (diff)
downloadgitea-cf045b029cc11dc48c3a626441b7017710088823.tar.gz
gitea-cf045b029cc11dc48c3a626441b7017710088823.zip
golint fixed for parts of routers root, dev, user and org dirs (#167)
* golint fixed for parts of routers root, dev and org dirs * add user/auth.go golint fixed * rename unnecessary exported to unexported and user dir golint fixed
Diffstat (limited to 'routers/dev')
-rw-r--r--routers/dev/template.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/dev/template.go b/routers/dev/template.go
index 91ff6762f0..15ac1c8635 100644
--- a/routers/dev/template.go
+++ b/routers/dev/template.go
@@ -11,6 +11,7 @@ import (
"code.gitea.io/gitea/modules/setting"
)
+// TemplatePreview render for previewing the indicated template
func TemplatePreview(ctx *context.Context) {
ctx.Data["User"] = models.User{Name: "Unknown"}
ctx.Data["AppName"] = setting.AppName