~gitpocket/gitpocket

4
1040c303df0adf7cb7b8da45a50120156f212bdf
mainfeed-discovery
gitpocket/templates/org.html -rw-r--r--2.5 KiB ViewLogBlameView rawPermalink 9a0689bbfd style(ui): american spelling and softer repo descriptions 23 hours ago
 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
30
31
{{define "content"}}
{{$p := .Data.Profile}}
{{$o := .Data.Owner}}
<header class="orghead">
<div class="orgmark"><img src="/~{{$o.Name}}/avatar?v={{$p.Avatar}}" alt=""></div>
<div class="orgident">
<h2>{{with $p.Display}}{{.}}{{else}}{{$o.Name}}{{end}}</h2>
<p class="handle">~{{$o.Name}}</p>
{{with .Data.Bio}}<div class="bio readme">{{.}}</div>{{end}}
<ul class="facts">
{{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}}
{{range $p.Links}}<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="{{.}}" rel="nofollow me">{{bare .}}</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}}<div class="orgactions"><a class="btn" href="/~{{$o.Name}}/settings">Edit organization</a></div>{{end}}
</header>
<div class="columns orgbody">
<div class="main">
<nav class="tabs small orgtabs"><a class="active" href="/~{{$o.Name}}">about</a><a href="/~{{$o.Name}}/repos">repos{{if .Data.Total}} <span class="count">{{.Data.Total}}</span>{{end}}</a><a href="/~{{$o.Name}}/feed">feed</a></nav>
{{with .Data.Activity}}<section class="activity"><div class="heathead"><p class="muted small">{{.Total}} commit{{if ne .Total 1}}s{{end}} across the organization {{if .Year}}in {{.Year}}{{else}}in the past 12 months{{end}}</p><nav class="years">{{range .Years}}<a href="{{if eq . $.Data.Activity.Year}}?{{else}}?year={{.}}{{end}}"{{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}}
{{if .Data.Repos}}<div class="events">{{range .Data.Repos}}{{template "repoitem" .}}{{end}}</div>{{end}}
</div>
<aside class="people">
<h4>People <span class="count">{{len .Data.Members}}</span></h4>
<ul>{{range .Data.Members}}<li><a href="/~{{.Name}}"><img src="/~{{.Name}}/avatar?v={{.Profile.Avatar}}" alt=""><b>{{with .Profile.Display}}{{.}}{{else}}~{{.Name}}{{end}}</b><small>~{{.Name}}</small></a></li>{{end}}</ul>
<h4>Feeds</h4>
<p class="small"><a href="/~{{$o.Name}}/feed">Commits across ~{{$o.Name}}</a></p>
</aside>
</div>
{{end}}