diff options
author | Unknwon <u@gogs.io> | 2015-11-18 17:42:20 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-18 17:42:20 -0500 |
commit | f04d773f4f72f8f167b7ceed4d4e9a6fd4e6ad16 (patch) | |
tree | 3c642ab96010e2ace4fce4563857a7d228a4a892 /templates | |
parent | 4325b01a589ec9d20b6ef588deec3d14852f0816 (diff) | |
download | gitea-f04d773f4f72f8f167b7ceed4d4e9a6fd4e6ad16.tar.gz gitea-f04d773f4f72f8f167b7ceed4d4e9a6fd4e6ad16.zip |
UI: long organization name in create repository owner list
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/create.tmpl | 6 | ||||
-rw-r--r-- | templates/repo/pulls/fork.tmpl | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 183da494ca..ebaa5965fa 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -15,18 +15,18 @@ <input type="hidden" id="uid" name="uid" value="{{.ContextUser.Id}}" required> <span class="text"> <img class="ui mini image" src="{{.ContextUser.AvatarLink}}"> - {{.ContextUser.Name}} + {{.ContextUser.ShortName 20}} </span> <i class="dropdown icon"></i> <div class="menu"> <div class="item" data-value="{{.SignedUser.Id}}"> <img class="ui mini image" src="{{.SignedUser.AvatarLink}}"> - {{.SignedUser.Name}} + {{.SignedUser.ShortName 20}} </div> {{range .Orgs}} <div class="item" data-value="{{.Id}}"> <img class="ui mini image" src="{{.AvatarLink}}"> - {{.Name}} + {{.ShortName 20}} </div> {{end}} </div> diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl index c3e8e1e52c..b2f857dac6 100644 --- a/templates/repo/pulls/fork.tmpl +++ b/templates/repo/pulls/fork.tmpl @@ -11,23 +11,23 @@ {{template "base/alert" .}} <div class="inline required field {{if .Err_Owner}}error{{end}}"> <label>{{.i18n.Tr "repo.owner"}}</label> - <div class="ui selection dropdown"> + <div class="ui selection owner dropdown"> <input type="hidden" id="uid" name="uid" value="{{.ContextUser.Id}}" required> <span class="text"> <img class="ui mini image" src="{{.ContextUser.AvatarLink}}"> - {{.ContextUser.Name}} + {{.ContextUser.ShortName 20}} </span> <i class="dropdown icon"></i> <div class="menu"> <div class="item" data-value="{{.SignedUser.Id}}"> <img class="ui mini image" src="{{.SignedUser.AvatarLink}}"> - {{.SignedUser.Name}} + {{.SignedUser.ShortName 20}} </div> {{range .Orgs}} {{if .IsOwnedBy $.SignedUser.Id}} <div class="item" data-value="{{.Id}}"> <img class="ui mini image" src="{{.AvatarLink}}"> - {{.Name}} + {{.ShortName 20}} </div> {{end}} {{end}} |