bloat/templates/user.tmpl

66 lines
2.3 KiB
Cheetah
Raw Normal View History

2020-01-14 18:57:16 +02:00
{{with .Data}}
{{template "header.tmpl" (WithContext .HeaderData $.Ctx)}}
{{template "navigation.tmpl" (WithContext .NavbarData $.Ctx)}}
<div class="page-title"> User </div>
<div class="user-info-container">
<div>
<div class="user-profile-img-container">
2019-12-22 05:43:25 +02:00
<a class="img-link" href="{{.User.AvatarStatic}}" target="_blank">
<img class="user-profile-img" src="{{.User.AvatarStatic}}" alt="profile-avatar" />
</a>
</div>
<div class="user-profile-details-container">
<div>
2019-12-21 07:48:06 +02:00
<span class="status-dname"> {{EmojiFilter .User.DisplayName .User.Emojis}} </span>
<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-14 18:57:16 +02:00
<img class="icon" src="{{GetIcon "link" $.Ctx.DarkMode}}" alt="link" />
2019-12-22 05:43:25 +02:00
</a>
</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 12:07:06 +02:00
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
<input type="submit" value="unfollow" class="btn-link">
</form>
{{end}}
{{if .User.Pleroma.Relationship.Requested}}
<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}}">
<input type="submit" value="cancel request" class="btn-link">
</form>
{{end}}
{{if not .User.Pleroma.Relationship.Following}}
<form class="d-inline" action="/follow/{{.User.ID}}" method="post">
2020-01-25 12:07:06 +02: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">
</form>
{{end}}
</div>
<div>
2019-12-29 05:43:57 +02:00
{{.User.StatusesCount}} statuses -
<a href="/following/{{.User.ID}}"> {{.User.FollowingCount}} following </a> -
<a href="/followers/{{.User.ID}}"> {{.User.FollowersCount}} followers </a>
</div>
</div>
<div class="user-profile-decription">
{{.User.Note}}
</div>
</div>
</div>
{{range .Statuses}}
2020-01-14 18:57:16 +02:00
{{template "status.tmpl" (WithContext . $.Ctx)}}
{{end}}
<div class="pagination">
2020-01-28 19:51:00 +02:00
{{if .NextLink}}
<a href="{{.NextLink}}">next</a>
{{end}}
</div>
{{template "footer.tmpl"}}
2020-01-14 18:57:16 +02:00
{{end}}