collaboration.tmpl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {{template "base/head" .}}
  2. <div class="repository settings collaboration">
  3. {{template "repo/header" .}}
  4. <div class="ui container">
  5. <div class="ui grid">
  6. {{template "repo/settings/navbar" .}}
  7. <div class="twelve wide column content">
  8. {{template "base/alert" .}}
  9. <h4 class="ui top attached header">
  10. {{.i18n.Tr "repo.settings.collaboration"}}
  11. </h4>
  12. <div class="ui attached segment collaborator list">
  13. {{range .Collaborators}}
  14. <div class="item">
  15. {{if not (eq .Id $.Owner.Id)}}
  16. <a href="{{$.RepoLink}}/settings/collaboration?remove={{.Name}}" class="ui right text red"><i class="fa fa-times"></i></a>
  17. {{end}}
  18. <a href="{{AppSubUrl}}/{{.Name}}">
  19. <img class="ui avatar image" src="{{.AvatarLink}}">
  20. {{.DisplayName}}
  21. </a>
  22. </div>
  23. {{end}}
  24. </div>
  25. <div class="ui bottom attached segment">
  26. <form class="ui form" id="repo-collab-form" action="{{.Link}}" method="post">
  27. {{.CsrfTokenHtml}}
  28. <div class="inline field ui left">
  29. <div id="search-user-box">
  30. <div class="ui input">
  31. <input class="prompt" name="collaborator" placeholder="{{.i18n.Tr "repo.settings.search_user_placeholder"}}" autocomplete="off" required>
  32. </div>
  33. <div class="ui segment results hide"></div>
  34. </div>
  35. </div>
  36. <button class="ui green button">{{.i18n.Tr "repo.settings.add_collaborator"}}</button>
  37. </form>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. {{template "base/footer" .}}