~gitpocket/gitpocket

1
d96cdcc25cf34c777dcd7cd4d65855e9cbc6c2f0
mainfeed-discovery
gitpocket/templates/user.html -rw-r--r--1.1 KiB ViewLogBlameView rawPermalink 40e55b8c7b feat(basin): sourcehut style layout and settings tabs 1 months ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
{{define "content"}}
{{$p := .Data.Profile}}
<div class="columns user">
<aside>
<div class="profile">
{{if $p.Avatar}}<img class="avatar" src="/~{{.Data.Owner.Name}}/avatar?v={{$p.Avatar}}" alt="">{{end}}
{{if $p.Display}}<h1>{{$p.Display}}</h1><p class="handle">~{{.Data.Owner.Name}}</p>{{else}}<h1>~{{.Data.Owner.Name}}</h1>{{end}}
<p class="links">{{if $p.Website}}<a href="{{$p.Website}}" rel="nofollow me">{{$p.Website}}</a>{{end}}{{if $p.Location}}{{if $p.Website}} | {{end}}{{$p.Location}}{{end}}{{if $p.Workplace}}{{if or $p.Website $p.Location}} | {{end}}{{$p.Workplace}}{{end}}</p>
{{with .Data.Bio}}<div class="bio readme">{{.}}</div>{{end}}
<p class="muted small">Joined {{ago .Data.Owner.Created}}</p>
</div>
</aside>
<div class="main">
{{template "repolist" .Data.Repos}}
</div>
</div>
{{end}}
{{define "repolist"}}
{{if .}}<div class="repos">{{range .}}<div class="repo"><a href="/{{.Path}}">{{.Name}}</a>{{if .Private}} <span class="tag">private</span>{{end}}{{if .Description}}<div>{{.Description}}</div>{{end}}</div>{{end}}</div>{{else}}<p class="muted">No repositories.</p>{{end}}
{{end}}