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.

48 lines
2.1 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. {{template "org/base/header" .}}
  4. <div class="container">
  5. <div class="org-header-alert">
  6. {{template "ng/base/alert" .}}
  7. </div>
  8. <div class="org-toolbar clear">
  9. {{if .IsOrganizationOwner}}
  10. <a class="btn btn-green btn-large btn-link btn-radius right" href="{{.OrgLink}}/invitations/new"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "org.invite_someone"}}</a>
  11. {{end}}
  12. </div>
  13. <div id="org-member-list">
  14. {{range .Members}}
  15. <div class="org-member-item">
  16. <img class="avatar-48 left" src="{{.AvatarLink}}?s=100">
  17. <a class="text-black" href="{{AppSubUrl}}/{{.Name}}"><span class="member-name"><strong>{{.FullName}}</strong>({{.Name}})</span></a>
  18. <ul class="grid-6-12 right">
  19. <li class="grid-1-3">
  20. {{ $isPublic := .IsPublicMember $.Org.Id}}
  21. {{if $isPublic}}
  22. {{$.i18n.Tr "org.members.public"}}
  23. {{if eq $.SignedUser.Id .Id}}(<a href="{{$.OrgLink}}/members/action/private?uid={{.Id}}">{{$.i18n.Tr "org.members.public_helper"}}</a>){{end}}
  24. {{else}}
  25. {{$.i18n.Tr "org.members.private"}}
  26. {{if eq $.SignedUser.Id .Id}}(<a href="{{$.OrgLink}}/members/action/public?uid={{.Id}}">{{$.i18n.Tr "org.members.private_helper"}}</a>){{end}}
  27. {{end}}
  28. </li>
  29. <li class="grid-1-4">{{if .IsUserOrgOwner $.Org.Id}}<strong>{{$.i18n.Tr "org.members.owner"}}</strong>{{else}}{{$.i18n.Tr "org.members.member"}}{{end}}</li>
  30. {{if eq $.SignedUser.Id .Id}}
  31. <li class="grid-1-6 right">
  32. <a class="btn btn-red btn-link btn-radius" href="{{$.OrgLink}}/members/action/leave?uid={{.Id}}">{{$.i18n.Tr "org.members.leave"}}</a>
  33. </li>
  34. {{else if $.IsOrganizationOwner}}
  35. <li class="grid-1-6 right">
  36. <a class="btn btn-red btn-link btn-radius" href="{{$.OrgLink}}/members/action/remove?uid={{.Id}}">{{$.i18n.Tr "org.members.remove"}}</a>
  37. </li>
  38. {{if $isPublic}}
  39. <li class="grid-1-6 right">
  40. <a class="btn btn-blue btn-link btn-radius" href="{{$.OrgLink}}/members/action/private?uid={{.Id}}">{{$.i18n.Tr "org.members.conceal"}}</a>
  41. </li>
  42. {{end}}
  43. {{end}}
  44. </ul>
  45. </div>
  46. {{end}}
  47. </div>
  48. </div>
  49. {{template "ng/base/footer" .}}