本站源代码
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

63 行
2.4KB

  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 four wide column center">
  17. <div class="meta">
  18. {{$.i18n.Tr "org.members.membership_visibility"}}
  19. </div>
  20. <div class="meta">
  21. {{ $isPublic := index $.MembersIsPublicMember .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 index $.MembersIsUserOrgOwner .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 one wide column center">
  40. <div class="meta">
  41. 2FA
  42. </div>
  43. <div class="meta">
  44. <strong><span class="octicon {{if index $.MembersTwoFaStatus .ID}}octicon-check text green{{else}}octicon-x{{end}}"></span></strong>
  45. </div>
  46. </div>
  47. <div class="ui four wide column">
  48. <div class="text right">
  49. {{if eq $.SignedUser.ID .ID}}
  50. <a class="ui red small button" href="{{$.OrgLink}}/members/action/leave?uid={{.ID}}">{{$.i18n.Tr "org.members.leave"}}</a>
  51. {{else if $.IsOrganizationOwner}}
  52. <a class="ui red small button" href="{{$.OrgLink}}/members/action/remove?uid={{.ID}}">{{$.i18n.Tr "org.members.remove"}}</a>
  53. {{end}}
  54. </div>
  55. </div>
  56. </div>
  57. {{end}}
  58. </div>
  59. </div>
  60. </div>
  61. {{template "base/footer" .}}
上海开阖软件有限公司 沪ICP备12045867号-1