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.8 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. {{$canAddRemove := and $.IsOrganizationOwner (not (eq $.Team.LowerName "owners"))}}
  11. {{if $canAddRemove}}
  12. <div class="ui attached segment">
  13. <form class="ui form" id="add-repo-form" action="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/repo/add" method="post">
  14. {{.CsrfTokenHtml}}
  15. <div class="inline field ui left">
  16. <div id="search-repo-box" data-uid="{{.Org.ID}}" class="ui search">
  17. <div class="ui input">
  18. <input class="prompt" name="repo_name" placeholder="{{.i18n.Tr "org.teams.search_repo_placeholder"}}" autocomplete="off" required>
  19. </div>
  20. </div>
  21. </div>
  22. <button class="ui green button">{{.i18n.Tr "org.teams.add_team_repository"}}</button>
  23. </form>
  24. </div>
  25. {{end}}
  26. <div class="ui bottom attached table segment repositories">
  27. {{range .Team.Repos}}
  28. <div class="item">
  29. {{if $canAddRemove}}
  30. <a class="ui red small button right" href="{{$.OrgLink}}/teams/{{$.Team.LowerName}}/action/repo/remove?repoid={{.ID}}">{{$.i18n.Tr "org.teams.remove_repo"}}</a>
  31. {{end}}
  32. <a class="member" href="{{AppSubUrl}}/{{$.Org.Name}}/{{.Name}}">
  33. <i class="octicon octicon-{{if .IsPrivate}}lock{{else if .IsFork}}repo-forked{{else if .IsMirror}}repo-clone{{else}}repo{{end}}"></i>
  34. <strong>{{$.Org.Name}}/{{.Name}}</strong>
  35. </a>
  36. </div>
  37. {{else}}
  38. <div class="item">
  39. <span class="text grey italic">{{$.i18n.Tr "org.teams.repos.none"}}</span>
  40. </div>
  41. {{end}}
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. {{template "base/footer" .}}