collaboration.tmpl 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="repo-wrapper">
  4. {{template "repo/header" .}}
  5. <div id="setting-wrapper" class="main-wrapper">
  6. <div id="repo-setting" class="container clear">
  7. {{template "repo/settings/nav" .}}
  8. <div class="grid-4-5 left">
  9. <div class="setting-content">
  10. {{template "ng/base/alert" .}}
  11. <div id="setting-content">
  12. <div id="user-profile-setting-content" class="panel panel-radius">
  13. <div class="panel-header">
  14. <strong>{{.i18n.Tr "repo.settings.collaboration"}}</strong>
  15. </div>
  16. <div class="panel-body">
  17. <ul id="repo-collab-list">
  18. {{range .Collaborators}}
  19. <li class="collab">
  20. {{if not (eq .Id $.Owner.Id)}}<a href="{{$.RepoLink}}/settings/collaboration?remove={{.Name}}" class="remove-collab right"><i class="fa fa-times"></i></a>{{end}}
  21. <a class="member" href="{{AppSubUrl}}/{{.Name}}">
  22. <img alt="{{.Name}}" class="pull-left avatar" src="{{.AvatarLink}}">
  23. <strong>{{.FullName}}</strong> ({{.Name}})
  24. </a>
  25. </li>
  26. <hr>
  27. {{end}}
  28. </ul>
  29. </div>
  30. <div class="panel-footer">
  31. <form class="form form-align" action="{{.RepoLink}}/settings/collaboration" method="post" id="repo-collab-form">
  32. {{.CsrfTokenHtml}}
  33. <input class="ipt ipt-large ipt-radius" id="repo-collaborator" name="collaborator" autocomplete="off" required />
  34. <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "repo.settings.add_collaborator"}}</button>
  35. <div class="repo-user-list-block">
  36. <ul class="menu-down-show menu-vertical menu-radius switching-list user-list" id="repo-collaborator-list"></ul>
  37. </div>
  38. </form>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. {{template "ng/base/footer" .}}