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.

47 lines
1.7 KiB

9 years ago
9 years ago
  1. {{template "base/head" .}}
  2. <div class="organization teams">
  3. {{template "org/header" .}}
  4. <div class="ui container">
  5. {{template "base/alert" .}}
  6. <div class="ui grid">
  7. {{template "org/team/sidebar" .}}
  8. <div class="ui ten wide column">
  9. {{template "org/team/navbar" .}}
  10. {{if .IsOrganizationOwner}}
  11. <div class="ui attached segment">
  12. <form class="ui form" id="add-member-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/add" method="post">
  13. {{.CsrfTokenHtml}}
  14. <input type="hidden" name="uid" value="{{.SignedUser.ID}}">
  15. <div class="inline field ui left">
  16. <div id="search-user-box" class="ui search">
  17. <div class="ui input">
  18. <input class="prompt" name="uname" placeholder="{{.i18n.Tr "repo.settings.search_user_placeholder"}}" autocomplete="off" required>
  19. </div>
  20. </div>
  21. </div>
  22. <button class="ui green button">{{.i18n.Tr "org.teams.add_team_member"}}</button>
  23. </form>
  24. </div>
  25. {{end}}
  26. <div class="ui bottom attached table segment members">
  27. {{range .Team.Members}}
  28. <div class="item">
  29. {{if $.IsOrganizationOwner}}
  30. <a class="ui red small button right" href="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/remove?uid={{.ID}}">{{$.i18n.Tr "org.members.remove"}}</a>
  31. {{end}}
  32. <a href="{{.HomeLink}}">
  33. <img class="ui avatar image" src="{{.RelAvatarLink}}">
  34. {{.DisplayName}}
  35. </a>
  36. </div>
  37. {{else}}
  38. <div class="item">
  39. <span class="text grey italic">{{$.i18n.Tr "org.teams.members.none"}}</span>
  40. </div>
  41. {{end}}
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. {{template "base/footer" .}}