mirror of https://github.com/gogits/gogs.git
Browse Source
* Implement organizations listing in setting and allow user to create new organization. * Implement organizations listing in setting and allow user to create new organization. * Add space remove by mistake * Remove unused part of the template * Update display and behavior according to @Unknown remarkspull/3335/merge
Rémy Boulanouar
8 years ago
committed by
无闻
6 changed files with 78 additions and 10 deletions
@ -0,0 +1,37 @@ |
|||||||
|
{{template "base/head" .}} |
||||||
|
<div class="user settings organizations"> |
||||||
|
<div class="ui container"> |
||||||
|
<div class="ui grid"> |
||||||
|
{{template "user/settings/navbar" .}} |
||||||
|
<div class="twelve wide column content"> |
||||||
|
{{template "base/alert" .}} |
||||||
|
<h4 class="ui top attached header"> |
||||||
|
{{.i18n.Tr "settings.orgs"}} |
||||||
|
<div class="ui right"> |
||||||
|
<a class="ui blue tiny button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "new_org"}}</a> |
||||||
|
</div> |
||||||
|
</h4> |
||||||
|
<div class="ui attached segment orgs"> |
||||||
|
{{if .Orgs}} |
||||||
|
<div class="ui middle aligned divided list"> |
||||||
|
{{range .Orgs}} |
||||||
|
<div class="item"> |
||||||
|
<div class="right floated content"> |
||||||
|
<div class="ui button">Leave</div> |
||||||
|
</div> |
||||||
|
<img class="ui mini image" src="{{.RelAvatarLink}}"> |
||||||
|
<div class="content"> |
||||||
|
<a href="{{.HomeLink}}">{{.Name}}</a> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{end}} |
||||||
|
</div> |
||||||
|
{{else}} |
||||||
|
{{.i18n.Tr "settings.orgs_none"}} |
||||||
|
{{end}} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
{{template "base/footer" .}} |
Loading…
Reference in new issue