2020-01-14 18:57:16 +02:00
|
|
|
{{with .Data}}
|
2020-02-19 00:15:37 +02:00
|
|
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
2019-12-20 20:30:20 +02:00
|
|
|
<div class="page-title"> User </div>
|
|
|
|
|
|
|
|
<div class="user-info-container">
|
|
|
|
<div>
|
|
|
|
<div class="user-profile-img-container">
|
2021-04-07 09:55:11 +03:00
|
|
|
<a class="img-link" href="{{.User.Avatar}}" target="_blank">
|
|
|
|
<img class="user-profile-img" src="{{.User.Avatar}}" alt="profile-avatar" height="96" />
|
2019-12-22 05:43:25 +02:00
|
|
|
</a>
|
2019-12-20 20:30:20 +02:00
|
|
|
</div>
|
|
|
|
<div class="user-profile-details-container">
|
|
|
|
<div>
|
2022-03-30 18:52:30 +03:00
|
|
|
<bdi class="status-dname"> {{EmojiFilter (HTML .User.DisplayName) .User.Emojis | Raw}} </bdi>
|
2020-09-22 18:42:16 +03:00
|
|
|
<span class="status-uname"> @{{.User.Acct}} </span>
|
2019-12-22 05:43:25 +02:00
|
|
|
<a class="remote-link" href="{{.User.URL}}" target="_blank" title="remote profile">
|
2020-01-30 15:56:29 +02:00
|
|
|
source
|
2019-12-22 05:43:25 +02:00
|
|
|
</a>
|
2019-12-20 20:30:20 +02:00
|
|
|
</div>
|
2020-02-08 13:50:14 +02:00
|
|
|
{{if not .IsCurrent}}
|
2019-12-20 20:30:20 +02:00
|
|
|
<div>
|
|
|
|
<span> {{if .User.Pleroma.Relationship.FollowedBy}} follows you - {{end}} </span>
|
2022-10-11 19:06:24 +03:00
|
|
|
<span> {{if .User.Pleroma.IsAdmin}} your dear admin - {{end}} </span>
|
|
|
|
<span> {{if .User.Pleroma.IsModerator}} your dear moderator - {{end}} </span>
|
2022-08-15 16:57:41 +03:00
|
|
|
{{if .User.Pleroma.Relationship.BlockedBy}} blocks you - {{end}}
|
2019-12-20 20:30:20 +02:00
|
|
|
{{if .User.Pleroma.Relationship.Following}}
|
|
|
|
<form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
|
2020-01-25 12:07:06 +02:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-01-25 12:07:06 +02:00
|
|
|
<input type="submit" value="unfollow" class="btn-link">
|
2019-12-20 20:30:20 +02:00
|
|
|
</form>
|
2020-04-17 20:19:11 +03:00
|
|
|
{{else}}
|
2020-02-08 12:49:06 +02:00
|
|
|
<form class="d-inline" action="/follow/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-02-08 12:49:06 +02:00
|
|
|
<input type="submit" value="{{if .User.Pleroma.Relationship.Requested}}resend request{{else}}follow{{end}}" class="btn-link">
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2020-04-17 20:19:11 +03:00
|
|
|
{{if .User.Pleroma.Relationship.Requested}}
|
2020-02-08 12:49:06 +02:00
|
|
|
-
|
2019-12-20 20:30:20 +02:00
|
|
|
<form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
|
2020-01-25 12:07:06 +02:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-01-25 12:07:06 +02:00
|
|
|
<input type="submit" value="cancel request" class="btn-link">
|
2019-12-20 20:30:20 +02:00
|
|
|
</form>
|
2020-04-17 20:19:11 +03:00
|
|
|
{{end}}
|
|
|
|
-
|
|
|
|
{{if .User.Pleroma.Relationship.Subscribing}}
|
|
|
|
<form class="d-inline" action="/unsubscribe/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-04-17 20:19:11 +03:00
|
|
|
<input type="submit" value="unsubscribe" class="btn-link">
|
|
|
|
</form>
|
|
|
|
{{else}}
|
|
|
|
<form class="d-inline" action="/subscribe/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-04-17 20:19:11 +03:00
|
|
|
<input type="submit" value="subscribe" class="btn-link">
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2020-02-08 12:49:06 +02:00
|
|
|
</div>
|
|
|
|
<div>
|
2020-04-17 20:19:11 +03:00
|
|
|
{{if .User.Pleroma.Relationship.Blocking}}
|
2020-02-08 12:49:06 +02:00
|
|
|
<form class="d-inline" action="/unblock/{{.User.ID}}" method="post">
|
2020-01-25 12:07:06 +02:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-02-08 12:49:06 +02:00
|
|
|
<input type="submit" value="unblock" class="btn-link">
|
|
|
|
</form>
|
2020-04-17 20:19:11 +03:00
|
|
|
{{else}}
|
2020-02-08 12:49:06 +02:00
|
|
|
<form class="d-inline" action="/block/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-02-08 12:49:06 +02:00
|
|
|
<input type="submit" value="block" class="btn-link">
|
|
|
|
</form>
|
2020-04-17 20:19:11 +03:00
|
|
|
{{end}}
|
2020-02-08 12:49:06 +02:00
|
|
|
-
|
2020-04-17 20:19:11 +03:00
|
|
|
{{if .User.Pleroma.Relationship.Muting}}
|
2020-02-08 12:49:06 +02:00
|
|
|
<form class="d-inline" action="/unmute/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-02-08 12:49:06 +02:00
|
|
|
<input type="submit" value="unmute" class="btn-link">
|
|
|
|
</form>
|
2020-04-17 20:19:11 +03:00
|
|
|
{{else}}
|
2020-02-08 12:49:06 +02:00
|
|
|
<form class="d-inline" action="/mute/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-02-08 12:49:06 +02:00
|
|
|
<input type="submit" value="mute" class="btn-link">
|
2019-12-20 20:30:20 +02:00
|
|
|
</form>
|
2021-10-29 17:20:15 +03:00
|
|
|
-
|
|
|
|
<form class="d-inline" action="/mute/{{.User.ID}}?notifications=false" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
|
|
|
<input type="submit" value="mute (keep notifications)" class="btn-link">
|
|
|
|
</form>
|
2020-04-19 08:57:40 +03:00
|
|
|
{{end}}
|
2020-04-19 14:24:37 +03:00
|
|
|
{{if .User.Pleroma.Relationship.Following}}
|
2020-04-19 08:57:40 +03:00
|
|
|
-
|
|
|
|
{{if .User.Pleroma.Relationship.ShowingReblogs}}
|
|
|
|
<form class="d-inline" action="/follow/{{.User.ID}}?reblogs=false" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-04-19 08:57:40 +03:00
|
|
|
<input type="submit" value="hide retweets" class="btn-link">
|
|
|
|
</form>
|
|
|
|
{{else}}
|
|
|
|
<form class="d-inline" action="/follow/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2021-01-17 07:44:07 +02:00
|
|
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
2020-04-19 08:57:40 +03:00
|
|
|
<input type="submit" value="show retweets" class="btn-link">
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2020-04-19 14:24:37 +03:00
|
|
|
{{end}}
|
2019-12-20 20:30:20 +02:00
|
|
|
</div>
|
2020-02-08 13:50:14 +02:00
|
|
|
{{end}}
|
2019-12-20 20:30:20 +02:00
|
|
|
<div>
|
2020-01-31 05:38:49 +02:00
|
|
|
<a href="/user/{{.User.ID}}"> statuses ({{.User.StatusesCount}}) </a> -
|
|
|
|
<a href="/user/{{.User.ID}}/following"> following ({{.User.FollowingCount}}) </a> -
|
|
|
|
<a href="/user/{{.User.ID}}/followers"> followers ({{.User.FollowersCount}}) </a> -
|
2022-10-26 00:44:22 +03:00
|
|
|
<a href="/user/{{.User.ID}}/media"> media </a> -
|
|
|
|
<a href="/user/{{.User.ID}}/pinned"> pinned statuses </a>
|
2019-12-20 20:30:20 +02:00
|
|
|
</div>
|
2020-09-27 12:29:17 +03:00
|
|
|
{{if .IsCurrent}}
|
|
|
|
<div>
|
2021-01-16 11:10:02 +02:00
|
|
|
<a href="/user/{{.User.ID}}/bookmarks"> bookmarks </a>
|
|
|
|
- <a href="/user/{{.User.ID}}/likes"> likes </a>
|
|
|
|
- <a href="/user/{{.User.ID}}/mutes"> mutes </a>
|
|
|
|
- <a href="/user/{{.User.ID}}/blocks"> blocks </a>
|
|
|
|
{{if .User.Locked}}- <a href="/user/{{.User.ID}}/requests"> requests </a>{{end}}
|
2022-11-04 19:55:42 +02:00
|
|
|
- <a href="/useredit"> edit </a>
|
2020-09-27 12:29:17 +03:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2020-01-30 17:32:37 +02:00
|
|
|
<div>
|
|
|
|
<a href="/usersearch/{{.User.ID}}"> search statuses </a>
|
2021-01-30 18:51:09 +02:00
|
|
|
{{if .IsCurrent}} - <a href="/filters"> filters </a> {{end}}
|
2020-01-30 17:32:37 +02:00
|
|
|
</div>
|
2019-12-20 20:30:20 +02:00
|
|
|
</div>
|
2022-09-19 23:42:58 +03:00
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>About user</summary>
|
2019-12-20 20:30:20 +02:00
|
|
|
<div class="user-profile-decription">
|
2022-09-19 23:42:58 +03:00
|
|
|
[User created: {{.User.CreatedAt}}]<br>
|
2022-03-30 18:52:30 +03:00
|
|
|
{{EmojiFilter .User.Note .User.Emojis | Raw}}
|
2019-12-20 20:30:20 +02:00
|
|
|
</div>
|
2022-09-19 23:42:58 +03:00
|
|
|
</details>
|
2022-03-30 20:12:53 +03:00
|
|
|
{{if .User.Fields}}
|
|
|
|
<div class="user-fields">
|
|
|
|
{{range .User.Fields}}
|
|
|
|
<div>{{.Name}} - {{.Value | Raw}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-12-20 20:30:20 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-31 05:38:49 +02:00
|
|
|
{{if eq .Type ""}}
|
|
|
|
<div class="page-title"> Statuses </div>
|
2019-12-20 20:30:20 +02:00
|
|
|
{{range .Statuses}}
|
2020-01-14 18:57:16 +02:00
|
|
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
2020-09-27 12:29:17 +03:00
|
|
|
{{else}}
|
|
|
|
<div class="no-data-found">No data found</div>
|
2019-12-20 20:30:20 +02:00
|
|
|
{{end}}
|
|
|
|
|
2020-01-31 05:38:49 +02:00
|
|
|
{{else if eq .Type "following"}}
|
|
|
|
<div class="page-title"> Following </div>
|
|
|
|
{{template "userlist.tmpl" (WithContext .Users $.Ctx)}}
|
|
|
|
|
|
|
|
{{else if eq .Type "followers"}}
|
|
|
|
<div class="page-title"> Followers </div>
|
|
|
|
{{template "userlist.tmpl" (WithContext .Users $.Ctx)}}
|
|
|
|
|
|
|
|
{{else if eq .Type "media"}}
|
|
|
|
<div class="page-title"> Statuses with media </div>
|
|
|
|
{{range .Statuses}}
|
|
|
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
2022-10-26 00:44:22 +03:00
|
|
|
{{else}}
|
|
|
|
<div class="no-data-found">No data found</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{else if eq .Type "pinned"}}
|
|
|
|
<div class="page-title"> Pinned statuses </div>
|
|
|
|
{{range .Statuses}}
|
|
|
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
2020-09-27 12:29:17 +03:00
|
|
|
{{else}}
|
|
|
|
<div class="no-data-found">No data found</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{else if eq .Type "bookmarks"}}
|
|
|
|
<div class="page-title"> Bookmarks </div>
|
|
|
|
{{range .Statuses}}
|
|
|
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
|
|
|
{{else}}
|
|
|
|
<div class="no-data-found">No data found</div>
|
2020-01-31 05:38:49 +02:00
|
|
|
{{end}}
|
2020-09-27 12:44:52 +03:00
|
|
|
|
2020-09-27 13:04:56 +03:00
|
|
|
{{else if eq .Type "likes"}}
|
|
|
|
<div class="page-title"> Likes </div>
|
|
|
|
{{range .Statuses}}
|
|
|
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
|
|
|
{{else}}
|
|
|
|
<div class="no-data-found">No data found</div>
|
|
|
|
{{end}}
|
|
|
|
|
2020-09-27 12:44:52 +03:00
|
|
|
{{else if eq .Type "mutes"}}
|
|
|
|
<div class="page-title"> Mutes </div>
|
|
|
|
{{template "userlist.tmpl" (WithContext .Users $.Ctx)}}
|
2020-09-27 12:50:04 +03:00
|
|
|
|
|
|
|
{{else if eq .Type "blocks"}}
|
|
|
|
<div class="page-title"> Blocks </div>
|
|
|
|
{{template "userlist.tmpl" (WithContext .Users $.Ctx)}}
|
2021-01-16 11:10:02 +02:00
|
|
|
|
|
|
|
{{else if eq .Type "requests"}}
|
|
|
|
<div class="page-title"> Follow requests </div>
|
|
|
|
{{template "requestlist.tmpl" (WithContext .Users $.Ctx)}}
|
2020-01-31 05:38:49 +02:00
|
|
|
{{end}}
|
|
|
|
|
2019-12-20 20:30:20 +02:00
|
|
|
<div class="pagination">
|
2020-01-28 19:51:00 +02:00
|
|
|
{{if .NextLink}}
|
2020-09-22 19:22:58 +03:00
|
|
|
<a href="{{.NextLink}}">[next]</a>
|
2019-12-20 20:30:20 +02:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{template "footer.tmpl"}}
|
2020-01-14 18:57:16 +02:00
|
|
|
{{end}}
|