aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org/team/sidebar.tmpl
blob: 1ab24e9aacdade983206b7409daa24e68e27e913 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div class="grid-1-3 panel panel-radius left" id="org-team-card">
    <div class="panel-header">
		{{if .Team.IsMember $.SignedUser.Id}}
        <a class="btn btn-small btn-red btn-header btn-radius right" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/leave?page=team">{{$.i18n.Tr "org.teams.leave"}}</a>
        {{else}}
        <a class="btn btn-small btn-blue btn-header btn-radius right" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/join?page=team">{{$.i18n.Tr "org.teams.join"}}</a>
        {{end}}
    	<strong>{{.Team.Name}}</strong>
    </div>
    <div class="panel-body">
    	<p class="desc">{{if .Team.Description}}{{.Team.Description}}{{else}}{{.i18n.Tr "org.teams.no_desc"}}{{end}}</p>
    	<hr>
    	<div class="team-stats">
    		<a class="text-black"><strong>{{.Team.NumMembers}}</strong> {{$.i18n.Tr "org.lower_members"}}</a> ·
    		<a class="text-black"><strong>{{.Team.NumRepos}}</strong> {{$.i18n.Tr "org.lower_repositories"}}</a>
    	</div>
    	<p class="desc">
    		{{if eq .Team.LowerName "owners"}}
    		{{.i18n.Tr "org.teams.owners_permission_desc" | Str2html}}
    		{{end}}
      	</p>
    </div>
    <div class="panel-footer">
    	<a class="btn btn-medium btn-green btn-link btn-radius" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/edit"><span class="octicon octicon-gear"></span> {{$.i18n.Tr "org.teams.settings"}}</a>
    </div>
</div>