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.

58 lines
2.6 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
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. <div id="body-nav" class="org-nav org-nav-auto">
  4. <div class="container clearfix">
  5. <div id="org-nav-wrapper">
  6. <ul class="nav nav-pills pull-right">
  7. <li><a href="/org/{{.Org.Name}}/members"><i class="fa fa-users"></i>Members
  8. <span class="label label-default">{{.Org.NumMembers}}</span></a>
  9. </li>
  10. <li class="active"><a href="/org/{{.Org.Name}}/teams"><i class="fa fa-tags"></i>Teams
  11. <span class="label label-default">{{.Org.NumTeams}}</span></a>
  12. </li>
  13. </ul>
  14. <img class="pull-left org-small-logo" src="{{.Org.AvatarLink}}?s=140" alt="" width="60"/>
  15. <div id="org-nav-info">
  16. <h2 class="org-name">{{.Org.FullName}}</h2>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div id="body" class="container">
  22. <div id="org">
  23. <div id="org-teams">
  24. <div id="org-teams-action">
  25. <div class="col-md-12">
  26. <a href="/org/{{.Org.Name}}/teams/new"><button class="btn btn-success"><i class="fa fa-plus-square"></i>New Team</button></a>
  27. <hr/>
  28. </div>
  29. </div>
  30. {{range .Teams}}
  31. <div class="org-team col-md-6">
  32. <div class="panel panel-default">
  33. <h2 class="panel-heading org-team-name"><a href="/org/{{$.Org.Name}}/teams/{{.LowerName}}"><strong>{{.Name}}</strong></a></h2>
  34. <div class="panel-body">
  35. <p class="org-team-meta">{{.NumMembers}} members · {{.NumRepos}} repositories</p>
  36. <p class="org-team-members">
  37. {{range .Members}}
  38. <a href="/user/{{.LowerName}}">
  39. <img class="img-thumbnail" src="{{.AvatarLink}}?s=60" alt=""/>
  40. </a>
  41. {{end}}
  42. </p>
  43. </div>
  44. <div class="panel-footer">
  45. {{if .IsMember $.SignedUserId}}
  46. <a class="pull-right btn btn-danger" href="/org/{{$.Org.Name}}/teams/{{.LowerName}}?action=leave">Leave</a>
  47. {{else}}
  48. <a class="pull-right btn btn-default" href="/org/{{$.Org.Name}}/teams/{{.LowerName}}?action=join">Join</a>
  49. {{end}}
  50. </div>
  51. </div>
  52. </div>
  53. {{end}}
  54. </div>
  55. </div>
  56. </div>
  57. {{template "base/footer" .}}