organizations.tmpl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {{template "base/head" .}}
  2. <div class="user settings organizations">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. {{template "user/settings/navbar" .}}
  6. <div class="twelve wide column content">
  7. {{template "base/alert" .}}
  8. <h4 class="ui top attached header">
  9. {{.i18n.Tr "settings.orgs"}}
  10. <div class="ui right">
  11. <a class="ui blue tiny button" href="{{AppSubURL}}/org/create">{{.i18n.Tr "new_org"}}</a>
  12. </div>
  13. </h4>
  14. <div class="ui attached segment orgs {{if .Orgs}}non-empty{{end}}">
  15. {{if .Orgs}}
  16. <div class="ui middle aligned divided list">
  17. {{range .Orgs}}
  18. <div class="item">
  19. <div class="right floated">
  20. <button class="ui red tiny basic button inline delete-button" data-url="{{$.Link}}/leave" data-id="{{.ID}}">
  21. {{$.i18n.Tr "org.members.leave"}}
  22. </button>
  23. </div>
  24. <img class="ui mini image" src="{{.RelAvatarLink}}">
  25. <div class="content">
  26. <a href="{{.HomeLink}}">{{.Name}}</a>
  27. </div>
  28. </div>
  29. {{end}}
  30. </div>
  31. {{else}}
  32. {{.i18n.Tr "settings.orgs.none"}}
  33. {{end}}
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="ui small basic delete modal">
  40. <div class="ui icon header">
  41. <i class="trash icon"></i>
  42. {{.i18n.Tr "settings.orgs.leave_title"}}
  43. </div>
  44. <div class="content">
  45. <p>{{.i18n.Tr "settings.orgs.leave_desc"}}</p>
  46. </div>
  47. {{template "base/delete_modal_actions" .}}
  48. </div>
  49. {{template "base/footer" .}}