summaryrefslogtreecommitdiffstats
path: root/templates/repo/create.tmpl
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-28 15:43:25 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-28 15:43:25 -0400
commit5dbfe3c26c3dd227e287d52134e978084d5081e3 (patch)
tree35975dd05e85056d6c7b7e89f0bec1cc46273d80 /templates/repo/create.tmpl
parent6e448b07145fbb090e0da6deb97f244c2bfd7ba7 (diff)
downloadgitea-5dbfe3c26c3dd227e287d52134e978084d5081e3.tar.gz
gitea-5dbfe3c26c3dd227e287d52134e978084d5081e3.zip
Finish organization homepage
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r--templates/repo/create.tmpl17
1 files changed, 5 insertions, 12 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index 38b32a3bfc..ed01d9772b 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -10,23 +10,16 @@
<div class="col-md-8">
<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>
+ <img src="{{.ContextUser.AvatarLink}}?s=28" alt="user-avatar" title="username" id="repo-owner-avatar">
+ <span id="repo-owner-name">{{.ContextUser.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}}">
+ {{range .AllUsers}}
+ <li data-uid="{{.Id}}"{{if eq .Id $.ContextUser.Id}}class="checked"{{end}}>
<a>
<i class="fa fa-check"></i>
<img src="{{.AvatarLink}}?s=28" alt="user-avatar" title="username">
@@ -38,7 +31,7 @@
</div>
</div>
</div>
- <input type="hidden" value="{{.SignedUserId}}" name="uid" id="repo-owner-id"/>
+ <input type="hidden" value="{{.ContextUser.Id}}" name="uid" id="repo-owner-id"/>
</div>
<div class="form-group {{if .Err_RepoName}}has-error has-feedback{{end}}">