~gitpocket/gitpocket

gitpocket/templates/user.html -rw-r--r--1.2 KiB ViewLogBlameView rawPermalink 8a60bcae51 — feat(basin): larger avatar and bordered repo cards 3 days ago
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{define "content"}}
{{$p := .Data.Profile}}
{{$own := and .User (eq .User.ID .Data.Owner.ID)}}
<div class="userhead">
<h2>~{{.Data.Owner.Name}}</h2>
<nav class="tabs small"><a class="active" href="/~{{.Data.Owner.Name}}">about</a></nav>
</div>
<div class="columns user">
<aside class="profile">
{{if $p.Avatar}}<img class="avatar" src="/~{{.Data.Owner.Name}}/avatar?v={{$p.Avatar}}" alt="">{{end}}
{{if $p.Display}}<p class="name">{{$p.Display}}</p>{{end}}
{{if $p.Location}}<p>{{$p.Location}}</p>{{end}}
{{if $p.Workplace}}<p>{{$p.Workplace}}</p>{{end}}
{{if $p.Website}}<p><a href="{{$p.Website}}" rel="nofollow me">{{$p.Website}}</a></p>{{end}}
{{with .Data.Bio}}<div class="bio readme">{{.}}</div>{{end}}
{{if $own}}<a class="btn primary block" href="/create">Create a new repository ▸</a><a class="btn block" href="/settings">Edit your profile ▸</a>{{end}}
</aside>
<div class="main">
{{if .Data.Repos}}<div class="repos">{{range .Data.Repos}}<div class="repo"><a href="/{{.Path}}">{{.Name}}{{if .Private}} <span class="tag">private</span>{{end}}</a>{{if .Description}}<div>{{.Description}}</div>{{end}}<div class="muted small">{{ago .Created}}</div></div>{{end}}</div>{{else}}<p class="info">This user does not have any repositories.</p>{{end}}
</div>
</div>
{{end}}