1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 18:14:28 +00:00
gitea/templates/org/teams.tmpl

59 lines
2.6 KiB
Cheetah
Raw Normal View History

2014-06-22 13:53:40 +00:00
{{template "base/head" .}}
{{template "base/navbar" .}}
<div id="body-nav" class="org-nav org-nav-auto">
<div class="container clearfix">
<div id="org-nav-wrapper">
<ul class="nav nav-pills pull-right">
2014-06-29 20:30:41 +00:00
<li><a href="/org/{{.Org.Name}}/members"><i class="fa fa-users"></i>Members
<span class="label label-default">{{.Org.NumMembers}}</span></a>
2014-06-22 13:53:40 +00:00
</li>
2014-06-29 20:30:41 +00:00
<li class="active"><a href="/org/{{.Org.Name}}/teams"><i class="fa fa-tags"></i>Teams
<span class="label label-default">{{.Org.NumTeams}}</span></a>
2014-06-22 13:53:40 +00:00
</li>
</ul>
2014-06-29 20:30:41 +00:00
<img class="pull-left org-small-logo" src="{{.Org.AvatarLink}}?s=140" alt="" width="60"/>
2014-06-22 13:53:40 +00:00
<div id="org-nav-info">
2014-06-29 20:30:41 +00:00
<h2 class="org-name">{{.Org.FullName}}</h2>
2014-06-22 13:53:40 +00:00
</div>
</div>
</div>
</div>
2014-07-02 20:42:16 +00:00
2014-06-22 13:53:40 +00:00
<div id="body" class="container">
<div id="org">
<div id="org-teams">
2014-06-27 13:33:49 +00:00
<div id="org-teams-action">
<div class="col-md-12">
2014-06-29 20:30:41 +00:00
<a href="/org/{{.Org.Name}}/teams/new"><button class="btn btn-success"><i class="fa fa-plus-square"></i>New Team</button></a>
2014-06-27 13:33:49 +00:00
<hr/>
</div>
</div>
2014-06-29 20:30:41 +00:00
{{range .Teams}}
2014-06-22 13:53:40 +00:00
<div class="org-team col-md-6">
<div class="panel panel-default">
2014-06-29 20:30:41 +00:00
<h2 class="panel-heading org-team-name"><a href="/org/{{$.Org.Name}}/teams/{{.LowerName}}"><strong>{{.Name}}</strong></a></h2>
2014-06-22 13:53:40 +00:00
<div class="panel-body">
2014-06-29 20:30:41 +00:00
<p class="org-team-meta">{{.NumMembers}} members · {{.NumRepos}} repositories</p>
2014-06-22 13:53:40 +00:00
<p class="org-team-members">
2014-06-29 20:30:41 +00:00
{{range .Members}}
<a href="/user/{{.LowerName}}">
<img class="img-thumbnail" src="{{.AvatarLink}}?s=60" alt=""/>
2014-06-22 13:53:40 +00:00
</a>
2014-06-29 20:30:41 +00:00
{{end}}
2014-06-22 13:53:40 +00:00
</p>
</div>
<div class="panel-footer">
2014-08-11 03:11:18 +00:00
{{if .IsMember $.SignedUser.Id}}
2014-06-29 20:30:41 +00:00
<a class="pull-right btn btn-danger" href="/org/{{$.Org.Name}}/teams/{{.LowerName}}?action=leave">Leave</a>
{{else}}
<a class="pull-right btn btn-default" href="/org/{{$.Org.Name}}/teams/{{.LowerName}}?action=join">Join</a>
{{end}}
2014-06-22 13:53:40 +00:00
</div>
</div>
</div>
2014-06-29 20:30:41 +00:00
{{end}}
2014-06-22 13:53:40 +00:00
</div>
</div>
</div>
{{template "base/footer" .}}