2020-01-14 17:57:16 +01:00
|
|
|
{{with .Data}}
|
2020-02-18 23:15:37 +01:00
|
|
|
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
2019-12-20 19:30:20 +01:00
|
|
|
<div class="page-title"> User </div>
|
|
|
|
|
|
|
|
<div class="user-info-container">
|
|
|
|
<div>
|
|
|
|
<div class="user-profile-img-container">
|
2019-12-22 04:43:25 +01:00
|
|
|
<a class="img-link" href="{{.User.AvatarStatic}}" target="_blank">
|
2020-09-22 06:21:39 +02:00
|
|
|
<img class="user-profile-img" src="{{.User.AvatarStatic}}" alt="profile-avatar" height="96" />
|
2019-12-22 04:43:25 +01:00
|
|
|
</a>
|
2019-12-20 19:30:20 +01:00
|
|
|
</div>
|
|
|
|
<div class="user-profile-details-container">
|
|
|
|
<div>
|
2019-12-21 06:48:06 +01:00
|
|
|
<span class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </span>
|
2020-09-22 17:42:16 +02:00
|
|
|
<span class="status-uname"> @{{.User.Acct}} </span>
|
2019-12-22 04:43:25 +01:00
|
|
|
<a class="remote-link" href="{{.User.URL}}" target="_blank" title="remote profile">
|
2020-01-30 14:56:29 +01:00
|
|
|
source
|
2019-12-22 04:43:25 +01:00
|
|
|
</a>
|
2019-12-20 19:30:20 +01:00
|
|
|
</div>
|
2020-02-08 12:50:14 +01:00
|
|
|
{{if not .IsCurrent}}
|
2019-12-20 19:30:20 +01:00
|
|
|
<div>
|
|
|
|
<span> {{if .User.Pleroma.Relationship.FollowedBy}} follows you - {{end}} </span>
|
|
|
|
{{if .User.Pleroma.Relationship.Following}}
|
|
|
|
<form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
|
2020-01-25 11:07:06 +01:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="unfollow" class="btn-link">
|
2019-12-20 19:30:20 +01:00
|
|
|
</form>
|
2020-04-17 19:19:11 +02:00
|
|
|
{{else}}
|
2020-02-08 11:49:06 +01:00
|
|
|
<form class="d-inline" action="/follow/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="{{if .User.Pleroma.Relationship.Requested}}resend request{{else}}follow{{end}}" class="btn-link">
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2020-04-17 19:19:11 +02:00
|
|
|
{{if .User.Pleroma.Relationship.Requested}}
|
2020-02-08 11:49:06 +01:00
|
|
|
-
|
2019-12-20 19:30:20 +01:00
|
|
|
<form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
|
2020-01-25 11:07:06 +01:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="cancel request" class="btn-link">
|
2019-12-20 19:30:20 +01:00
|
|
|
</form>
|
2020-04-17 19:19:11 +02: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}}">
|
|
|
|
<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}}">
|
|
|
|
<input type="submit" value="subscribe" class="btn-link">
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2020-02-08 11:49:06 +01:00
|
|
|
</div>
|
|
|
|
<div>
|
2020-04-17 19:19:11 +02:00
|
|
|
{{if .User.Pleroma.Relationship.Blocking}}
|
2020-02-08 11:49:06 +01:00
|
|
|
<form class="d-inline" action="/unblock/{{.User.ID}}" method="post">
|
2020-01-25 11:07:06 +01:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
2020-02-08 11:49:06 +01:00
|
|
|
<input type="submit" value="unblock" class="btn-link">
|
|
|
|
</form>
|
2020-04-17 19:19:11 +02:00
|
|
|
{{else}}
|
2020-02-08 11:49:06 +01:00
|
|
|
<form class="d-inline" action="/block/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="block" class="btn-link">
|
|
|
|
</form>
|
2020-04-17 19:19:11 +02:00
|
|
|
{{end}}
|
2020-02-08 11:49:06 +01:00
|
|
|
-
|
2020-04-17 19:19:11 +02:00
|
|
|
{{if .User.Pleroma.Relationship.Muting}}
|
2020-02-08 11:49:06 +01:00
|
|
|
<form class="d-inline" action="/unmute/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="unmute" class="btn-link">
|
|
|
|
</form>
|
2020-04-17 19:19:11 +02:00
|
|
|
{{else}}
|
2020-02-08 11:49:06 +01:00
|
|
|
<form class="d-inline" action="/mute/{{.User.ID}}" method="post">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="mute" class="btn-link">
|
2019-12-20 19:30:20 +01:00
|
|
|
</form>
|
2020-04-19 07:57:40 +02:00
|
|
|
{{end}}
|
2020-04-19 13:24:37 +02:00
|
|
|
{{if .User.Pleroma.Relationship.Following}}
|
2020-04-19 07:57:40 +02: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}}">
|
|
|
|
<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}}">
|
|
|
|
<input type="submit" value="show retweets" class="btn-link">
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2020-04-19 13:24:37 +02:00
|
|
|
{{end}}
|
2019-12-20 19:30:20 +01:00
|
|
|
</div>
|
2020-02-08 12:50:14 +01:00
|
|
|
{{end}}
|
2019-12-20 19:30:20 +01:00
|
|
|
<div>
|
2020-01-31 04:38:49 +01: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> -
|
|
|
|
<a href="/user/{{.User.ID}}/media"> media </a>
|
2019-12-20 19:30:20 +01:00
|
|
|
</div>
|
2020-09-27 11:29:17 +02:00
|
|
|
{{if .IsCurrent}}
|
|
|
|
<div>
|
|
|
|
<a href="/user/{{.User.ID}}/bookmarks"> bookmarks </a>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2020-01-30 16:32:37 +01:00
|
|
|
<div>
|
|
|
|
<a href="/usersearch/{{.User.ID}}"> search statuses </a>
|
|
|
|
</div>
|
2019-12-20 19:30:20 +01:00
|
|
|
</div>
|
|
|
|
<div class="user-profile-decription">
|
2020-02-06 16:55:28 +01:00
|
|
|
{{EmojiFilter .User.Note .User.Emojis}}
|
2019-12-20 19:30:20 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-31 04:38:49 +01:00
|
|
|
{{if eq .Type ""}}
|
|
|
|
<div class="page-title"> Statuses </div>
|
2019-12-20 19:30:20 +01:00
|
|
|
{{range .Statuses}}
|
2020-01-14 17:57:16 +01:00
|
|
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
2020-09-27 11:29:17 +02:00
|
|
|
{{else}}
|
|
|
|
<div class="no-data-found">No data found</div>
|
2019-12-20 19:30:20 +01:00
|
|
|
{{end}}
|
|
|
|
|
2020-01-31 04:38:49 +01: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)}}
|
2020-09-27 11:29:17 +02: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 04:38:49 +01:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
|
2019-12-20 19:30:20 +01:00
|
|
|
<div class="pagination">
|
2020-01-28 18:51:00 +01:00
|
|
|
{{if .NextLink}}
|
2020-09-22 18:22:58 +02:00
|
|
|
<a href="{{.NextLink}}">[next]</a>
|
2019-12-20 19:30:20 +01:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{template "footer.tmpl"}}
|
2020-01-14 17:57:16 +01:00
|
|
|
{{end}}
|