]> source.dussan.org Git - gitea.git/commitdiff
fix some link
authorslene <vslene@gmail.com>
Sun, 30 Mar 2014 09:03:00 +0000 (17:03 +0800)
committerslene <vslene@gmail.com>
Sun, 30 Mar 2014 09:03:00 +0000 (17:03 +0800)
models/user.go
modules/middleware/context.go
templates/user/profile.tmpl

index 6ca16ec32eb5f0f6513f3027a236a567a4140a04..a392fa76baaa92621f049d61e8e262f78e5e9b9f 100644 (file)
@@ -67,7 +67,7 @@ type User struct {
 
 // HomeLink returns the user home page link.
 func (user *User) HomeLink() string {
-       return "/user/" + user.LowerName
+       return "/user/" + user.Name
 }
 
 // AvatarLink returns the user gravatar link.
index a6aa58eebc8420b2359b1568b30256a1e959f89f..5f1d42b1e4e46cec266c91f36ba1bca1cc297ed4 100644 (file)
@@ -269,7 +269,7 @@ func InitContext() martini.Handler {
                if user != nil {
                        ctx.Data["SignedUser"] = user
                        ctx.Data["SignedUserId"] = user.Id
-                       ctx.Data["SignedUserName"] = user.LowerName
+                       ctx.Data["SignedUserName"] = user.Name
                        ctx.Data["IsAdmin"] = ctx.User.IsAdmin
                }
 
index 97549d481c9e07e15ea6fd60c8dd18a18c18b83d..88ee318f4ae2a24ab36c2d8e2afa3fa0ec8cd61c 100644 (file)
@@ -51,7 +51,7 @@
                     <li>
                         <div class="meta pull-right"><!-- <i class="fa fa-star"></i> {{.NumStars}} --> <i class="fa fa-code-fork"></i> {{.NumForks}}</div>
                         <h4>
-                            <a href="/{{$owner.Name}}/{{.LowerName}}">{{.LowerName}}</a>
+                            <a href="/{{$owner.Name}}/{{.Name}}">{{.Name}}</a>
                         </h4>
                         <p class="desc">{{.Description}}</p>
                         <div class="info">Last updated {{.Updated|TimeSince}}</div>
@@ -63,4 +63,4 @@
         </div>
     </div>
 </div>
-{{template "base/footer" .}}
\ No newline at end of file
+{{template "base/footer" .}}