summaryrefslogtreecommitdiffstats
path: root/templates/repo/migrate.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-25 05:35:23 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-25 05:35:23 -0400
commit32b09681b2da96afe9a44790e7944c4ac51e696c (patch)
tree1b66f2a799ae2251b5e46637000422c2fd03d111 /templates/repo/migrate.tmpl
parent8644c571dbcb964a338565c8042ff71957030e52 (diff)
downloadgitea-32b09681b2da96afe9a44790e7944c4ac51e696c.tar.gz
gitea-32b09681b2da96afe9a44790e7944c4ac51e696c.zip
Migrate repository by organization
Diffstat (limited to 'templates/repo/migrate.tmpl')
-rw-r--r--templates/repo/migrate.tmpl32
1 files changed, 30 insertions, 2 deletions
diff --git a/templates/repo/migrate.tmpl b/templates/repo/migrate.tmpl
index 34a4077eec..fff25e6de5 100644
--- a/templates/repo/migrate.tmpl
+++ b/templates/repo/migrate.tmpl
@@ -44,9 +44,37 @@
<div class="form-group">
<label class="col-md-2 control-label">Owner<strong class="text-danger">*</strong></label>
<div class="col-md-8">
- <p class="form-control-static">{{.SignedUserName}}</p>
- <input type="hidden" value="{{.SignedUserId}}" name="userId"/>
+ <div class="btn-group" id="repo-owner-switch">
+ <button type="button" class="btn btn-default" id="repo-owner-current">
+ <img src="{{.SignedUser.AvatarLink}}?s=28" alt="user-avatar" title="username" id="repo-owner-avatar">
+ <span id="repo-owner-name">{{.SignedUser.Name}}</span>
+ </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 data-uid="{{.SignedUser.Id}}" class="checked">
+ <a>
+ <i class="fa fa-check"></i>
+ <img src="{{.SignedUser.AvatarLink}}?s=28" alt="user-avatar" title="username">
+ {{.SignedUser.Name}}
+ </a>
+ </li>
+ {{range .Orgs}}
+ <li data-uid="{{.Id}}">
+ <a>
+ <i class="fa fa-check"></i>
+ <img src="{{.AvatarLink}}?s=28" alt="user-avatar" title="username">
+ {{.Name}}
+ </a>
+ </li>
+ {{end}}
+ </ul>
+ </div>
+ </div>
</div>
+ <input type="hidden" value="{{.SignedUserId}}" name="uid" id="repo-owner-id"/>
</div>
<div class="form-group {{if .Err_RepoName}}has-error has-feedback{{end}}">