diff options
author | fuxiaohei <fuxiaohei@vip.qq.com> | 2014-06-25 12:22:08 +0800 |
---|---|---|
committer | fuxiaohei <fuxiaohei@vip.qq.com> | 2014-06-25 12:22:08 +0800 |
commit | cc703ee6631e9a559fc3a72bf97d68c8fd5ebd10 (patch) | |
tree | 8287efe43b0358ab7e992a8e16a178c36e8e6e64 /templates/repo/create.tmpl | |
parent | b2801a2e985f11e940a0cd420cea57242ea26d4c (diff) | |
download | gitea-cc703ee6631e9a559fc3a72bf97d68c8fd5ebd10.tar.gz gitea-cc703ee6631e9a559fc3a72bf97d68c8fd5ebd10.zip |
select owner when creating repository
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r-- | templates/repo/create.tmpl | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 6da6a93d15..0d1c42deee 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -8,9 +8,28 @@ <div class="form-group"> <label class="col-md-2 control-label">Owner<strong class="text-danger">*</strong></label> <div class="col-md-8"> + <div class="btn-group" id="repo-owner-switch"> + <button type="button" class="btn btn-default"> + <img src="//1.gravatar.com/avatar/f72f7454ce9d710baa506394f68f4132?s=28" alt="user-avatar" title="username"> + fuxiaohei + </button> + <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> + <span class="caret"></span> + </button> + <div class="dropdown-menu clone-group-btn no-propagation"> + <ul id="dashboard-switch-menu" class="list-unstyled"> + <li class="checked"><a href="#"><i class="fa fa-check"></i> + <img src="//1.gravatar.com/avatar/f72f7454ce9d710baa506394f68f4132?s=28" alt="user-avatar" title="username"> + gogits/gogs</a></li> + </ul> + </div> + </div> + </div> + + <!--<div class="col-md-8"> <p class="form-control-static">{{.SignedUserName}}</p> <input type="hidden" value="{{.SignedUserId}}" name="userId"/> - </div> + </div>--> </div> <div class="form-group {{if .Err_RepoName}}has-error has-feedback{{end}}"> |