mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-23 02:32:12 +00:00
deba75cad1
* rename timestampShort -> timestampVague * add ParseISO8601 * start fiddling with timestamp * pad/margin a bit more consistently * remove visibilty icon, change timestamp use * update timestamp logic * check + log errors * properly cut-off long display- and usernames Co-authored-by: f0x <f0x@cthu.lu>
52 lines
2.2 KiB
Cheetah
52 lines
2.2 KiB
Cheetah
{{ template "header.tmpl" .}}
|
|
<main>
|
|
<div class="profile">
|
|
<div class="headerimage">
|
|
{{ if .account.Header }}
|
|
<img
|
|
src="{{.account.Header}}"
|
|
alt="{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}'s header"
|
|
/>
|
|
{{ end }}
|
|
</div>
|
|
<div class="basic">
|
|
<div id="profile-basic-filler2"></div>
|
|
<a href="{{.account.Avatar}}" class="avatar"><img src="{{.account.Avatar}}" alt="{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}'s avatar"></a>
|
|
<div class="displayname">{{if .account.DisplayName}}{{emojify .account.Emojis (escape .account.DisplayName)}}{{else}}{{.account.Username}}{{end}}</div>
|
|
<div class="username"><span>@{{.account.Username}}</span><span>@{{.instance.AccountDomain}}</span></div>
|
|
</div>
|
|
<div class="detailed">
|
|
<div class="bio">
|
|
{{ if .account.Note }}{{emojify .account.Emojis (noescape .account.Note)}}{{else}}This GoToSocial user hasn't written a bio yet!{{end}}
|
|
</div>
|
|
</div>
|
|
<div class="accountstats">
|
|
<div class="entry">Joined <b>{{.account.CreatedAt | timestampVague}}</b></div>
|
|
<div class="entry">Followed by <b>{{.account.FollowersCount}}</b></div>
|
|
<div class="entry">Following <b>{{.account.FollowingCount}}</b></div>
|
|
<div class="entry">Posted <b>{{.account.StatusesCount}}</b></div>
|
|
</div>
|
|
</div>
|
|
<h2 id="recent">Latest public toots</h2>
|
|
{{ if not .statuses }}
|
|
<div data-nosnippet class="nothinghere">Nothing here!</div>
|
|
{{ else }}
|
|
<div class="thread">
|
|
{{ range .statuses }}
|
|
<div class="toot expanded">
|
|
{{ template "status.tmpl" .}}
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
<div class="backnextlinks">
|
|
{{ if .show_back_to_top }}
|
|
<a href="/@{{ .account.Username }}">Back to top</a>
|
|
{{ end }}
|
|
{{ if .statuses_next }}
|
|
<a href="{{ .statuses_next }}" class="next">Show older</a>
|
|
{{ end }}
|
|
</div>
|
|
</main>
|
|
{{ template "footer.tmpl" .}}
|