diff options
author | r <r@freesoftwareextremist.com> | 2019-12-20 18:30:20 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-20 18:30:20 +0000 |
commit | a1f49af1d93bccdd56d4538b149884418bd2ca2c (patch) | |
tree | add621fe17d9dbcf3625bcc7de1738ea8c89bc9f /templates/user.tmpl | |
parent | 3d1e4cfa4c17eea9a64b8672df769c540fefdaeb (diff) | |
download | bloat-a1f49af1d93bccdd56d4538b149884418bd2ca2c.tar.gz bloat-a1f49af1d93bccdd56d4538b149884418bd2ca2c.zip |
Add user page and follow/unfollow calls
Diffstat (limited to 'templates/user.tmpl')
-rw-r--r-- | templates/user.tmpl | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/templates/user.tmpl b/templates/user.tmpl new file mode 100644 index 0000000..3347f92 --- /dev/null +++ b/templates/user.tmpl @@ -0,0 +1,54 @@ +{{template "header.tmpl"}} +{{template "navigation.tmpl" .NavbarData}} +<div class="page-title"> User </div> + +<div class="user-info-container"> +<div> + <div class="user-profile-img-container"> + <img class="user-profile-img" src="{{.User.AvatarStatic}}" alt="profile-avatar" /> + </div> + <div class="user-profile-details-container"> + <div> + <span class="status-dname"> {{WithEmojis .User.DisplayName .User.Emojis}} </span> + <span class="status-uname"> {{.User.Acct}} </span> + </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"> + <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"> + <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"> + <input type="submit" value="{{if .User.Pleroma.Relationship.Requested}}resend request{{else}}follow{{end}}" class="btn-link"> + </form> + {{end}} + </div> + <div> + {{.User.StatusesCount}} statuses - {{.User.FollowingCount}} following - {{.User.FollowersCount}} followers + </div> + </div> + <div class="user-profile-decription"> + {{.User.Note}} + </div> +</div> +</div> + +{{range .Statuses}} +{{template "status.tmpl" .}} +{{end}} + +<div class="pagination"> + {{if .HasNext}} + <a href="{{.NextLink}}">next</a> + {{end}} +</div> + +{{template "footer.tmpl"}} + |