Page: User profile

This commit is contained in:
Unknwon 2014-09-25 19:33:39 -04:00
parent f69761563b
commit 71e4689d11
12 changed files with 275 additions and 79 deletions

View file

@ -11,6 +11,7 @@ import (
"errors"
"fmt"
"os"
"path"
"path/filepath"
"strings"
"time"
@ -90,7 +91,7 @@ func (u *User) DashboardLink() string {
// HomeLink returns the user home page link.
func (u *User) HomeLink() string {
return setting.AppSubUrl + "/user/" + u.Name
return "/" + path.Join(setting.AppSubUrl, u.Name)
}
// AvatarLink returns user gravatar link.