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
27
28
29
|
{{define "content"}}
{{$p := .Data.Profile}}
{{$o := .Data.Owner}}
<header class="orghead">
<div class="orgmark">{{if $p.Avatar}}<img src="/~{{$o.Name}}/avatar?v={{$p.Avatar}}" alt="">{{else}}<span>{{slice $o.Name 0 1}}</span>{{end}}</div>
<div class="orgident">
<h2>{{with $p.Display}}{{.}}{{else}}{{$o.Name}}{{end}} <span class="orgbadge">Organisation</span></h2>
<p class="handle">~{{$o.Name}}</p>
{{with .Data.Bio}}<div class="bio readme">{{.}}</div>{{end}}
<ul class="facts inline">
{{if $p.Location}}<li><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 15s5-4.6 5-8.5A5 5 0 0 0 3 6.5C3 10.4 8 15 8 15z"/><circle cx="8" cy="6.5" r="1.8"/></svg>{{$p.Location}}</li>{{end}}
{{if $p.Website}}<li><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6.8 9.2a3 3 0 0 0 4.2 0l2.2-2.2a3 3 0 0 0-4.2-4.2l-.9.9"/><path d="M9.2 6.8a3 3 0 0 0-4.2 0L2.8 9a3 3 0 0 0 4.2 4.2l.9-.9"/></svg><a href="{{$p.Website}}" rel="nofollow me">{{bare $p.Website}}</a></li>{{end}}
<li title="{{date $o.Created}}"><svg viewBox="0 0 16 16" aria-hidden="true"><rect x="2" y="3" width="12" height="11" rx="1.5"/><path d="M2 6.5h12M5.5 1.5v3M10.5 1.5v3"/></svg>Since {{$o.Created.Format "January 2006"}}</li>
</ul>
</div>
{{if .Data.Member}}<a class="btn primary" href="/create?owner={{$o.Name}}">New repository</a>{{end}}
</header>
<div class="columns org">
<div class="main">
<h3 class="plain">Repositories <span class="count">{{len .Data.Repos}}</span></h3>
{{if .Data.Repos}}<div class="orgrepos">{{range .Data.Repos}}<a class="orgrepo" href="/{{.Path}}"><strong>{{.Name}}</strong>{{if .Private}} <span class="tag">private</span>{{else if .Unlisted}} <span class="tag">unlisted</span>{{end}}{{if .Description}}<span class="desc">{{.Description}}</span>{{end}}<span class="meta">Updated {{ago .Updated}}{{if .Stars}} · ☆ {{.Stars}}{{end}}</span></a>{{end}}</div>{{else}}<p class="info">This organisation does not have any repositories.</p>{{end}}
{{with .Data.Activity}}<section class="activity"><div class="heathead"><p class="muted small">{{.Total}} commit{{if ne .Total 1}}s{{end}} across the organisation {{if .Year}}in {{.Year}}{{else}}in the past 12 months{{end}}</p><nav class="years"><a href="?"{{if not .Year}} class="active"{{end}}>past 12 months</a>{{range .Years}}<a href="?year={{.}}"{{if eq . $.Data.Activity.Year}} class="active"{{end}}>{{.}}</a>{{end}}</nav></div>{{.Grid}}<p class="legend muted small">less <i class="h0"></i><i class="h1"></i><i class="h2"></i><i class="h3"></i><i class="h4"></i> more</p></section>{{end}}
</div>
<aside class="people">
<h3 class="plain">People <span class="count">{{len .Data.Members}}</span></h3>
<ul>{{range .Data.Members}}<li><a href="/~{{.Name}}">{{if .Profile.Avatar}}<img src="/~{{.Name}}/avatar?v={{.Profile.Avatar}}" alt="">{{else}}<span>{{slice .Name 0 1}}</span>{{end}}<b>{{with .Profile.Display}}{{.}}{{else}}~{{.Name}}{{end}}</b><small>~{{.Name}}</small></a></li>{{end}}</ul>
</aside>
</div>
{{end}}
|