New UI merge in progress

This commit is contained in:
Unknwon 2014-07-26 00:24:27 -04:00
parent 0a739cf9ac
commit 8dd07c0ddd
199 changed files with 15030 additions and 9325 deletions

View file

@ -8,7 +8,7 @@ import (
"net/url"
"strings"
"github.com/go-martini/martini"
"github.com/Unknwon/macaron"
"github.com/gogits/gogs/modules/setting"
)
@ -20,7 +20,7 @@ type ToggleOptions struct {
DisableCsrf bool
}
func Toggle(options *ToggleOptions) martini.Handler {
func Toggle(options *ToggleOptions) macaron.Handler {
return func(ctx *Context) {
// Cannot view any page before installation.
if !setting.InstallLock {
@ -49,7 +49,7 @@ func Toggle(options *ToggleOptions) martini.Handler {
ctx.Redirect("/user/login")
return
} else if !ctx.User.IsActive && setting.Service.RegisterEmailConfirm {
ctx.Data["Title"] = "Activate Your Account"
// ctx.Data["Title"] = "Activate Your Account"
ctx.HTML(200, "user/activate")
return
}