You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

  1. {{template "base/head" .}}
  2. <div class="user settings organization">
  3. {{template "user/settings/navbar" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <h4 class="ui top attached header">
  7. {{.i18n.Tr "settings.orgs"}}
  8. {{if .SignedUser.CanCreateOrganization}}
  9. <div class="ui right">
  10. <a class="ui blue tiny button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "admin.orgs.new_orga"}}</a>
  11. </div>
  12. {{end}}
  13. </h4>
  14. <div class="ui attached segment orgs">
  15. {{if .Orgs}}
  16. <div class="ui middle aligned divided list">
  17. {{range .Orgs}}
  18. <div class="item">
  19. <div class="right floated content">
  20. <form method="post" action="{{AppSubUrl}}/org/{{.Name}}/members/action/leave">
  21. {{$.CsrfTokenHtml}}
  22. <button type="submit" class="ui blue small button" name="uid" value="{{.ID}}">{{$.i18n.Tr "org.members.leave"}}</button>
  23. </form>
  24. </div>
  25. <img class="ui mini image" src="{{.RelAvatarLink}}">
  26. <div class="content">
  27. <a href="{{.HomeLink}}">{{.Name}}</a>
  28. </div>
  29. </div>
  30. {{end}}
  31. </div>
  32. {{else}}
  33. {{.i18n.Tr "settings.orgs_none"}}
  34. {{end}}
  35. </div>
  36. </div>
  37. </div>
  38. {{template "base/footer" .}}