diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-07-26 23:53:16 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-07-26 23:53:16 -0400 |
commit | 98131614119f39a3f341392c98a4d2320b5b8e21 (patch) | |
tree | 041d90457cd9213d6214faca4001af5a849bbe90 /templates/repo/create.tmpl | |
parent | 5e8138341357f367868a32b631495c9d5a286477 (diff) | |
download | gitea-98131614119f39a3f341392c98a4d2320b5b8e21.tar.gz gitea-98131614119f39a3f341392c98a4d2320b5b8e21.zip |
Reser repo owner to organization when error occurs in repo create page, dashboard news feed page, create organization page
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r-- | templates/repo/create.tmpl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 6ec713f664..13656becc2 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -8,23 +8,23 @@ {{template "ng/base/alert" .}} <div class="field"> <label for="owner" class="req">{{.i18n.Tr "repo.owner"}}</label> - <input id="owner" type="hidden" name="uid" value="{{.ContextUser.Id}}" /> + <input id="repo-owner-id" type="hidden" name="uid" value="{{.ContextUser.Id}}" /> <div class="inline-block drop"> <a href="#" class="drop-bottom"> - <img class="avatar" src="{{.ContextUser.AvatarLink}}" alt="user-avatar"> - <strong>{{.ContextUser.Name}}</strong> + <img class="avatar" src="{{.ContextUser.AvatarLink}}" id="repo-owner-avatar" alt="user-avatar"> + <strong id="repo-owner-name">{{.ContextUser.Name}}</strong> </a> <ul class="drop-down menu menu-vertical menu-radius switching-list" id="repo-create-owner-list"> - <li {{if eq $.ContextUser.Id .SignedUser.Id}}class="checked"{{end}}> - <a href="#"> + <li {{if eq $.ContextUser.Id .SignedUser.Id}}class="checked"{{end}} data-uid="{{.SignedUser.Id}}"> + <a> <i class="octicon octicon-check"></i> <img class="avatar" src="{{.SignedUser.AvatarLink}}" alt="user-avatar"> <strong>{{.SignedUser.Name}}</strong> </a> </li> {{range .Orgs}} - <li {{if eq $.ContextUser.Id .Id}}class="checked"{{end}}> - <a href="#"> + <li {{if eq $.ContextUser.Id .Id}}class="checked"{{end}} data-uid="{{.Id}}"> + <a> <i class="octicon octicon-check"></i> <img class="avatar" src="{{.AvatarLink}}" alt="user-avatar"> <strong>{{.Name}}</strong> |