summaryrefslogtreecommitdiff
path: root/web/template/profile.tmpl
blob: d65b45d5146877e4fc6df246eb50b9ead529783c (plain)
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
32
33
34
35
36
37
38
39
{{ 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}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}</div>
            <div class="username">@{{.account.Username}}@{{.instance.AccountDomain}}</div>
        </div>
        <div class="detailed">
            <div class="bio">
                {{ if .account.Note }}{{ .account.Note | noescape }}{{else}}This GoToSocial user hasn't written a bio yet!{{end}}
            </div>
        </div>
        <div class="accountstats">
            <div class="entry">Joined <b>{{.account.CreatedAt | timestampShort}}</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">Recent public toots</h2>
	<div class="thread">
		{{range .statuses}}
		<div class="toot expanded">
			{{ template "status.tmpl" .}}
		</div>
		{{end}}
	</div>
</main>
{{ template "footer.tmpl" .}}