]> source.dussan.org Git - gitea.git/commitdiff
Clean code
authorUnknown <joe2010xtmf@163.com>
Sat, 15 Mar 2014 09:53:13 +0000 (05:53 -0400)
committerUnknown <joe2010xtmf@163.com>
Sat, 15 Mar 2014 09:53:13 +0000 (05:53 -0400)
models/repo2.go
templates/repo/created.tmpl [deleted file]
web.go

index ef0131d83e56b99742d2e7309f8c110206ff801e..6aa6eda60caedc1740c70de03b85788a2a1159df 100644 (file)
@@ -1,3 +1,7 @@
+// 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 models
 
 import (
diff --git a/templates/repo/created.tmpl b/templates/repo/created.tmpl
deleted file mode 100644 (file)
index 35803e3..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-{{template "base/head" .}}
-{{template "base/navbar" .}}
-<div class="container" id="gogs-body">
-       <div class="col-md-offset-4 col-md-3">
-               Created successfully!
-       </div>
-</div>
-{{template "base/footer" .}}
\ No newline at end of file
diff --git a/web.go b/web.go
index cb6ee4aece14cc4a9294ea1aa34de57634432680..24f01d68a8d800950493ca833756be24cf6b606d 100644 (file)
--- a/web.go
+++ b/web.go
@@ -62,7 +62,7 @@ func runWeb(*cli.Context) {
        m.Use(sessions.Sessions("my_session", store))
 
        // Routers.
-       m.Get("/", auth.SignInRequire(false), routers.Home)
+       m.Get("/", auth.SignInRequire(true), routers.Home)
        m.Any("/user/login", auth.SignOutRequire(), binding.BindIgnErr(auth.LogInForm{}), user.SignIn)
        m.Any("/user/logout", auth.SignInRequire(true), user.SignOut)
        m.Any("/user/sign_up", auth.SignOutRequire(), binding.BindIgnErr(auth.RegisterForm{}), user.SignUp)