2023-01-05 11:43:00 +00:00
|
|
|
{{- /*
|
2023-04-04 09:33:11 +00:00
|
|
|
// GoToSocial
|
|
|
|
// Copyright (C) GoToSocial Authors admin@gotosocial.org
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
//
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU Affero General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU Affero General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2023-01-05 11:43:00 +00:00
|
|
|
*/ -}}
|
|
|
|
|
2022-04-15 12:33:01 +00:00
|
|
|
{{ template "header.tmpl" .}}
|
|
|
|
<main>
|
|
|
|
<div class="profile">
|
2022-06-21 08:48:42 +00:00
|
|
|
<div class="headerimage">
|
|
|
|
{{ if .account.Header }}
|
|
|
|
<img
|
|
|
|
src="{{.account.Header}}"
|
|
|
|
alt="{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}'s header"
|
|
|
|
/>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2022-04-15 12:33:01 +00:00
|
|
|
<div class="basic">
|
2022-07-04 14:23:59 +00:00
|
|
|
<div id="profile-basic-filler2"></div>
|
2022-06-21 08:48:42 +00:00
|
|
|
<a href="{{.account.Avatar}}" class="avatar"><img src="{{.account.Avatar}}" alt="{{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}'s avatar"></a>
|
2022-09-26 09:56:01 +00:00
|
|
|
<div class="displayname">{{if .account.DisplayName}}{{emojify .account.Emojis (escape .account.DisplayName)}}{{else}}{{.account.Username}}{{end}}</div>
|
2022-11-15 09:19:32 +00:00
|
|
|
<div class="usernamecontainer">
|
|
|
|
<div class="username">@{{ .account.Username }}@{{ .instance.AccountDomain }}</div>
|
|
|
|
{{- /* Only render account role if 1. it's present and 2. it's not equal to the standard 'user' role */ -}}
|
2023-02-20 16:00:44 +00:00
|
|
|
{{ if and (.account.Role) (ne .account.Role.Name "user") }}<div class="role {{ .account.Role.Name }}">{{ .account.Role.Name }}</div>{{ end }}
|
2022-11-15 09:19:32 +00:00
|
|
|
</div>
|
2022-04-15 12:33:01 +00:00
|
|
|
</div>
|
|
|
|
<div class="detailed">
|
|
|
|
<div class="bio">
|
2022-09-26 09:56:01 +00:00
|
|
|
{{ if .account.Note }}{{emojify .account.Emojis (noescape .account.Note)}}{{else}}This GoToSocial user hasn't written a bio yet!{{end}}
|
2022-04-15 12:33:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-21 08:48:42 +00:00
|
|
|
<div class="accountstats">
|
2022-11-15 09:19:32 +00:00
|
|
|
<div class="entry-group">
|
|
|
|
<div class="entry">Joined <b>{{.account.CreatedAt | timestampVague}}</b></div>
|
|
|
|
<div class="entry">Followed by <b>{{.account.FollowersCount}}</b></div>
|
|
|
|
</div>
|
|
|
|
<div class="entry-group">
|
|
|
|
<div class="entry">Following <b>{{.account.FollowingCount}}</b></div>
|
|
|
|
<div class="entry">Posted <b>{{.account.StatusesCount}}</b></div>
|
|
|
|
</div>
|
2022-06-21 08:48:42 +00:00
|
|
|
</div>
|
2022-04-15 12:33:01 +00:00
|
|
|
</div>
|
2023-02-25 12:16:30 +00:00
|
|
|
{{ if .pinned_statuses }}
|
|
|
|
<h2 id="pinned">
|
|
|
|
<span>Pinned toots</span>
|
|
|
|
</h2>
|
|
|
|
<div class="thread">
|
|
|
|
{{ range .pinned_statuses }}
|
|
|
|
<div class="toot expanded">
|
|
|
|
{{ template "status.tmpl" .}}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-10-08 12:00:39 +00:00
|
|
|
<h2 id="recent">
|
|
|
|
<span>Latest public toots</span>
|
|
|
|
{{ if .rssFeed }}
|
2022-10-12 16:23:50 +00:00
|
|
|
<a href="{{ .rssFeed }}" aria-label="RSS feed">
|
|
|
|
<i class="rss-icon fa fa-rss-square" aria-hidden="true"></i>
|
|
|
|
</a>
|
2022-10-08 12:00:39 +00:00
|
|
|
{{ end }}
|
|
|
|
</h2>
|
2022-07-13 07:57:47 +00:00
|
|
|
{{ if not .statuses }}
|
2022-09-29 10:03:17 +00:00
|
|
|
<div data-nosnippet class="nothinghere">Nothing here!</div>
|
2022-07-13 07:57:47 +00:00
|
|
|
{{ 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>
|
2022-04-15 12:33:01 +00:00
|
|
|
</main>
|
2022-05-28 11:19:24 +00:00
|
|
|
{{ template "footer.tmpl" .}}
|