b1cf7f4df1
* Add class to page content to unify top margin Previously pages would individually set this margin but some didn't so content would stick to the header without any space. Resolve this by adding a new class that is added on all pages. The only place where we remove this margin again is on the pages with menu or wrapper in the header. * fix admin notices * fix team pages * fix loading segment on gitgraph for arc-green * fix last missing case Co-authored-by: techknowlogick <techknowlogick@gitea.io>
38 lines
1.2 KiB
Handlebars
38 lines
1.2 KiB
Handlebars
{{template "base/head" .}}
|
|
<div class="page-content user settings organization">
|
|
{{template "user/settings/navbar" .}}
|
|
<div class="ui container">
|
|
{{template "base/alert" .}}
|
|
<h4 class="ui top attached header">
|
|
{{.i18n.Tr "settings.orgs"}}
|
|
{{if .SignedUser.CanCreateOrganization}}
|
|
<div class="ui right">
|
|
<a class="ui blue tiny button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "admin.orgs.new_orga"}}</a>
|
|
</div>
|
|
{{end}}
|
|
</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">
|
|
<form method="post" action="{{AppSubUrl}}/org/{{.Name}}/members/action/leave">
|
|
{{$.CsrfTokenHtml}}
|
|
<button type="submit" class="ui blue small button" name="uid" value="{{.ID}}">{{$.i18n.Tr "org.members.leave"}}</button>
|
|
</form>
|
|
</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>
|
|
{{template "base/footer" .}}
|