2023-06-18 18:18:10 +02: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/>.
|
|
|
|
*/ -}}
|
|
|
|
|
|
|
|
{{ template "header.tmpl" .}}
|
|
|
|
|
|
|
|
<main class="profile">
|
2023-10-18 07:22:29 +02:00
|
|
|
|
2023-06-18 18:18:10 +02:00
|
|
|
<div class="header">
|
2023-10-18 07:22:29 +02:00
|
|
|
|
|
|
|
<section class="user">
|
|
|
|
<figure>
|
|
|
|
<img src="{{.account.Header}}" class="bg" alt="">
|
|
|
|
<img src="{{.account.Avatar}}" class="avatar" alt="">
|
|
|
|
{{ if and (.account.Role) (ne .account.Role.Name "user") }}
|
2023-12-27 15:56:44 +01:00
|
|
|
<figcaption class="role {{ .account.Role.Name }}">{{
|
|
|
|
if and (.account.Role) (eq .account.Role.Name "admin")
|
|
|
|
}}webmain{{
|
|
|
|
else }}{{ .account.Role.Name }}{{ end
|
|
|
|
}}</figcaption>
|
2023-10-18 07:22:29 +02:00
|
|
|
{{ end }}
|
|
|
|
</figure>
|
|
|
|
|
|
|
|
<div class="displayname">
|
2023-06-18 18:18:10 +02:00
|
|
|
{{if .account.DisplayName}}
|
|
|
|
{{emojify .account.Emojis (escape .account.DisplayName)}}
|
|
|
|
{{else}}
|
|
|
|
{{.account.Username}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2023-08-26 05:45:17 +02:00
|
|
|
|
2023-10-18 07:22:29 +02:00
|
|
|
<div class="username">@{{.account.Username}}@{{.instance.AccountDomain}}</div>
|
|
|
|
</section>
|
2023-06-18 18:18:10 +02:00
|
|
|
|
2023-10-18 07:22:29 +02:00
|
|
|
<section class="bio">
|
|
|
|
{{ if .account.Note }}
|
|
|
|
{{emojify .account.Emojis (noescape .account.Note)}}
|
|
|
|
{{else}}
|
|
|
|
no bio
|
|
|
|
{{end}}
|
|
|
|
</section>
|
2023-06-18 18:18:10 +02:00
|
|
|
|
2023-10-18 07:22:29 +02:00
|
|
|
<section class="fields">
|
|
|
|
{{ range .account.Fields }}
|
|
|
|
<b>{{emojify $.account.Emojis (noescape .Name)}}</b>
|
|
|
|
<span>{{emojify $.account.Emojis (noescape .Value)}}</span>
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
2023-06-18 18:18:10 +02:00
|
|
|
|
2023-10-18 07:22:29 +02:00
|
|
|
<section class="fields">
|
|
|
|
<b>joined</b><time datetime="{{.account.CreatedAt}}">{{.account.CreatedAt | timestampVague}}</time>
|
|
|
|
<b>followers</b><span>{{.account.FollowersCount}}</span>
|
|
|
|
<b>follows</b><span>{{.account.FollowingCount}}</span>
|
|
|
|
<b>posts</b><span class="flex">
|
|
|
|
<span>{{.account.StatusesCount}}</span>
|
|
|
|
{{ if .rssFeed }}
|
|
|
|
<a href="{{ .rssFeed }}" class="rss-icon" aria-label="RSS feed">
|
|
|
|
<img src="/rss.svg" width="20" height="20">
|
|
|
|
</a>
|
2023-06-18 18:18:10 +02:00
|
|
|
{{ end }}
|
2023-10-18 07:22:29 +02:00
|
|
|
</span>
|
|
|
|
</section>
|
|
|
|
</div>
|
2023-06-18 18:18:10 +02:00
|
|
|
|
2023-10-18 07:22:29 +02:00
|
|
|
<section class="toots">
|
|
|
|
{{ if .pinned_statuses }}
|
|
|
|
<section class="thread">
|
|
|
|
{{ range .pinned_statuses }}
|
|
|
|
<article class="toot expanded" id="{{.ID}}">
|
|
|
|
{{ template "status_profile.tmpl" .}}
|
|
|
|
</article>
|
|
|
|
{{ end }}
|
2023-06-18 18:18:10 +02:00
|
|
|
</section>
|
2023-10-18 07:22:29 +02:00
|
|
|
{{ end }}
|
2023-06-18 18:18:10 +02:00
|
|
|
|
2023-10-18 07:22:29 +02:00
|
|
|
<section class="thread">
|
|
|
|
{{ if not .statuses }}
|
|
|
|
<div data-nosnippet class="nothinghere">Nothing here!</div>
|
|
|
|
{{ else }}
|
|
|
|
{{ range .statuses }}
|
|
|
|
<article class="toot expanded" id="{{.ID}}">
|
|
|
|
{{ template "status_profile.tmpl" .}}
|
|
|
|
</article>
|
2023-06-18 18:18:10 +02:00
|
|
|
{{ end }}
|
2023-10-18 07:22:29 +02:00
|
|
|
{{ end }}
|
|
|
|
</section>
|
2023-06-18 18:18:10 +02:00
|
|
|
|
2023-10-18 07:22:29 +02:00
|
|
|
<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>
|
|
|
|
</section>
|
2023-06-18 18:18:10 +02:00
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
{{ template "footer.tmpl" .}}
|