2020-01-14 16:57:16 +00:00
|
|
|
{{with .Data}}
|
|
|
|
{{template "header.tmpl" (WithContext .HeaderData $.Ctx)}}
|
|
|
|
{{template "navigation.tmpl" (WithContext .NavbarData $.Ctx)}}
|
2019-12-20 18:30:20 +00:00
|
|
|
<div class="page-title"> User </div>
|
|
|
|
|
|
|
|
<div class="user-info-container">
|
|
|
|
<div>
|
|
|
|
<div class="user-profile-img-container">
|
2019-12-22 03:43:25 +00:00
|
|
|
<a class="img-link" href="{{.User.AvatarStatic}}" target="_blank">
|
|
|
|
<img class="user-profile-img" src="{{.User.AvatarStatic}}" alt="profile-avatar" />
|
|
|
|
</a>
|
2019-12-20 18:30:20 +00:00
|
|
|
</div>
|
|
|
|
<div class="user-profile-details-container">
|
|
|
|
<div>
|
2019-12-21 05:48:06 +00:00
|
|
|
<span class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </span>
|
2019-12-20 18:30:20 +00:00
|
|
|
<span class="status-uname"> {{.User.Acct}} </span>
|
2019-12-22 03:43:25 +00:00
|
|
|
<a class="remote-link" href="{{.User.URL}}" target="_blank" title="remote profile">
|
2020-01-30 13:56:29 +00:00
|
|
|
source
|
2019-12-22 03:43:25 +00:00
|
|
|
</a>
|
2019-12-20 18:30:20 +00:00
|
|
|
</div>
|
|
|
|
<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 10:07:06 +00:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="unfollow" class="btn-link">
|
2019-12-20 18:30:20 +00:00
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
{{if .User.Pleroma.Relationship.Requested}}
|
|
|
|
<form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
|
2020-01-25 10:07:06 +00:00
|
|
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
|
|
<input type="submit" value="cancel request" class="btn-link">
|
2019-12-20 18:30:20 +00:00
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
{{if not .User.Pleroma.Relationship.Following}}
|
|
|
|
<form class="d-inline" action="/follow/{{.User.ID}}" method="post">
|
2020-01-25 10:07:06 +00:00
|
|
|
<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">
|
2019-12-20 18:30:20 +00:00
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div>
|
2020-01-31 03:38:49 +00: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 18:30:20 +00:00
|
|
|
</div>
|
2020-01-30 15:32:37 +00:00
|
|
|
<div>
|
|
|
|
<a href="/usersearch/{{.User.ID}}"> search statuses </a>
|
|
|
|
</div>
|
2019-12-20 18:30:20 +00:00
|
|
|
</div>
|
|
|
|
<div class="user-profile-decription">
|
|
|
|
{{.User.Note}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-31 03:38:49 +00:00
|
|
|
{{if eq .Type ""}}
|
|
|
|
<div class="page-title"> Statuses </div>
|
2019-12-20 18:30:20 +00:00
|
|
|
{{range .Statuses}}
|
2020-01-14 16:57:16 +00:00
|
|
|
{{template "status.tmpl" (WithContext . $.Ctx)}}
|
2019-12-20 18:30:20 +00:00
|
|
|
{{end}}
|
|
|
|
|
2020-01-31 03:38:49 +00: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)}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
|
2019-12-20 18:30:20 +00:00
|
|
|
<div class="pagination">
|
2020-01-28 17:51:00 +00:00
|
|
|
{{if .NextLink}}
|
2019-12-20 18:30:20 +00:00
|
|
|
<a href="{{.NextLink}}">next</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{template "footer.tmpl"}}
|
2020-01-14 16:57:16 +00:00
|
|
|
{{end}}
|