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.

46 lines
2.1 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. {{template "repo/nav" .}}
  4. {{template "repo/toolbar" .}}
  5. <div id="body" class="container">
  6. {{template "repo/setting_nav" .}}
  7. <div id="repo-setting-container" class="col-md-10">
  8. {{template "base/alert" .}}
  9. <div class="panel panel-default">
  10. <div class="panel-heading">
  11. Collaborators
  12. </div>
  13. <div class="panel-body">
  14. <ul id="repo-collab-list" class="list-unstyled">
  15. {{range .Collaborators}}
  16. <li class="collab">
  17. {{if not (eq .LowerName $.Owner.LowerName)}}<a href="{{$.RepoLink}}/settings/collaboration?remove={{.Name}}" class="remove-collab pull-right"><i class="fa fa-times"></i></a>{{end}}
  18. <a class="member" href="/user/{{.Name}}">
  19. <img alt="{{.Name}}" class="pull-left avatar" src="{{.AvatarLink}}">
  20. <strong class="access-member-fullname">{{.FullName}}</strong><br/>
  21. {{.Name}}
  22. </a>
  23. </li>
  24. {{end}}
  25. </ul>
  26. </div>
  27. <div class="panel-footer">
  28. <form action="{{.RepoLink}}/settings/collaboration" method="post" class="form-horizontal" id="repo-collab-form">
  29. {{.CsrfTokenHtml}}
  30. <div class="form-group" style="margin-bottom: 0">
  31. <div class="col-md-4">
  32. <input type="text" name="collaborator" class="form-control dropdown-toggle" id="repo-collaborator" autocomplete="off" required="required" data-toggle="dropdown"/>
  33. <div class="dropdown-menu">
  34. <ul class="list-unstyled"></ul>
  35. </div>
  36. </div>
  37. <button class="col-md-2 btn btn-primary">Add collaborator</button>
  38. </div>
  39. </form>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. {{template "base/footer" .}}