Minor fix for #2494

- Change tooltip size from mini to tiny in profile page
This commit is contained in:
Unknwon 2016-01-28 06:07:16 -05:00
parent 0617720c0c
commit 4deb876343
6 changed files with 10 additions and 10 deletions

View File

@ -3,7 +3,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true)
##### Current version: 0.8.23
##### Current version: 0.8.24
| Web | UI | Preview |
|:-------------:|:-------:|:-------:|

View File

@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const APP_VER = "0.8.23.0126"
const APP_VER = "0.8.24.0128"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())

View File

@ -525,11 +525,11 @@ func AddTestPullRequestTask(repoID int64, branch string) {
}
}
func ChangeUsernameInPullRequests(oldUserName, newUserName string) (error) {
func ChangeUsernameInPullRequests(oldUserName, newUserName string) error {
pr := PullRequest{
HeadUserName : newUserName,
HeadUserName: strings.ToLower(newUserName),
}
_, err := x.Cols("head_user_name").Where("head_user_name = ?", oldUserName).Update(pr)
_, err := x.Cols("head_user_name").Where("head_user_name = ?", strings.ToLower(oldUserName)).Update(pr)
return err
}

View File

@ -599,12 +599,12 @@ func ChangeUserName(u *User, newUserName string) (err error) {
return ErrUserAlreadyExist{newUserName}
}
err = ChangeUsernameInPullRequests(u.LowerName, newUserName)
err = ChangeUsernameInPullRequests(u.Name, newUserName)
if err != nil {
return err
return fmt.Errorf("ChangeUsernameInPullRequests: %v", err)
}
return os.Rename(UserPath(u.LowerName), UserPath(newUserName))
return os.Rename(UserPath(u.Name), UserPath(newUserName))
}
func updateUser(e Engine, u *User) error {

View File

@ -1 +1 @@
0.8.23.0126
0.8.24.0128

View File

@ -60,7 +60,7 @@
{{if .Orgs}}
<li>
{{range .Orgs}}
<a href="{{.HomeLink}}"><img class="ui mini image poping up" src="{{.AvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="mini inverted"></a>
<a href="{{.HomeLink}}"><img class="ui mini image poping up" src="{{.AvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a>
{{end}}
</li>
{{end}}