Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

members.tmpl 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {{template "base/head" .}}
  2. <div class="organization members">
  3. {{template "org/header" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <div class="list">
  7. {{range .Members}}
  8. <div class="item ui grid">
  9. <div class="ui one wide column">
  10. <img class="ui avatar" src="{{.SizedRelAvatarLink 48}}">
  11. </div>
  12. <div class="ui three wide column">
  13. <div class="meta"><a href="{{.HomeLink}}">{{.Name}}</a></div>
  14. <div class="meta">{{.FullName}}</div>
  15. </div>
  16. <div class="ui five wide column center">
  17. <div class="meta">
  18. {{$.i18n.Tr "org.members.membership_visibility"}}
  19. </div>
  20. <div class="meta">
  21. {{ $isPublic := .IsPublicMember $.Org.ID}}
  22. {{if $isPublic}}
  23. <strong>{{$.i18n.Tr "org.members.public"}}</strong>
  24. {{if or (eq $.SignedUser.ID .ID) $.IsOrganizationOwner}}(<a href="{{$.OrgLink}}/members/action/private?uid={{.ID}}">{{$.i18n.Tr "org.members.public_helper"}}</a>){{end}}
  25. {{else}}
  26. <strong>{{$.i18n.Tr "org.members.private"}}</strong>
  27. {{if or (eq $.SignedUser.ID .ID) $.IsOrganizationOwner}}(<a href="{{$.OrgLink}}/members/action/public?uid={{.ID}}">{{$.i18n.Tr "org.members.private_helper"}}</a>){{end}}
  28. {{end}}
  29. </div>
  30. </div>
  31. <div class="ui three wide column center">
  32. <div class="meta">
  33. {{$.i18n.Tr "org.members.member_role"}}
  34. </div>
  35. <div class="meta">
  36. <strong>{{if .IsUserOrgOwner $.Org.ID}}<span class="octicon octicon-shield"></span> {{$.i18n.Tr "org.members.owner"}}{{else}}{{$.i18n.Tr "org.members.member"}}{{end}}</strong>
  37. </div>
  38. </div>
  39. <div class="ui four wide column">
  40. <div class="text right">
  41. {{if eq $.SignedUser.ID .ID}}
  42. <a class="ui red small button" href="{{$.OrgLink}}/members/action/leave?uid={{.ID}}">{{$.i18n.Tr "org.members.leave"}}</a>
  43. {{else if $.IsOrganizationOwner}}
  44. <a class="ui red small button" href="{{$.OrgLink}}/members/action/remove?uid={{.ID}}">{{$.i18n.Tr "org.members.remove"}}</a>
  45. {{end}}
  46. </div>
  47. </div>
  48. </div>
  49. {{end}}
  50. </div>
  51. </div>
  52. </div>
  53. {{template "base/footer" .}}