~jadedctrl/jam-xwx-moe

~jadedctrl/jam-xwx-moe/bloat-fe/instance/ŝablonoj/user.tmpl
 ..
0 {{with .Data}}
1 {{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
2 <div class="page-title"> Uzanto </div>
3
4 <div class="user-info-container">
5 <div>
6 <div class="user-profile-img-container">
7 <a class="img-link" href="{{.User.Avatar}}" target="_blank">
8 <img class="user-profile-img" src="{{.User.Avatar}}" alt="profile-avatar" height="96" />
9 </a>
10 </div>
11 <div class="user-profile-details-container">
12 <div>
13 <bdi class="status-dname"> {{EmojiFilter (HTML .User.DisplayName) .User.Emojis | Raw}} </bdi>
14 <span class="status-uname"> @{{.User.Acct}} </span>
15 <a class="remote-link" href="{{.User.URL}}" target="_blank" title="remote profile">
16 source
17 </a>
18 </div>
19 {{if not .IsCurrent}}
20 <div>
21 <span> {{if .User.Pleroma.Relationship.FollowedBy}} follows you - {{end}} </span>
22 {{if .User.Pleroma.Relationship.BlockedBy}} blocks you - {{end}}
23 {{if .User.Pleroma.Relationship.Following}}
24 <form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
25 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
26 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
27 <input type="submit" value="malaboni" class="btn-link">
28 </form>
29 {{else}}
30 <form class="d-inline" action="/follow/{{.User.ID}}" method="post">
31 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
32 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
33 <input type="submit" value="{{if .User.Pleroma.Relationship.Requested}}resend request{{else}}aboni{{end}}" class="btn-link">
34 </form>
35 {{end}}
36 {{if .User.Pleroma.Relationship.Requested}}
37 -
38 <form class="d-inline" action="/unfollow/{{.User.ID}}" method="post">
39 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
40 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
41 <input type="submit" value="nuligi peton" class="btn-link">
42 </form>
43 {{end}}
44 -
45 {{if .User.Pleroma.Relationship.Subscribing}}
46 <form class="d-inline" action="/unsubscribe/{{.User.ID}}" method="post">
47 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
48 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
49 <input type="submit" value="nuligi duonabonon" class="btn-link">
50 </form>
51 {{else}}
52 <form class="d-inline" action="/subscribe/{{.User.ID}}" method="post">
53 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
54 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
55 <input type="submit" value="duonaboni" class="btn-link">
56 </form>
57 {{end}}
58 </div>
59 <div>
60 {{if .User.Pleroma.Relationship.Blocking}}
61 <form class="d-inline" action="/unblock/{{.User.ID}}" method="post">
62 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
63 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
64 <input type="submit" value="malbloki" class="btn-link">
65 </form>
66 {{else}}
67 <form class="d-inline" action="/block/{{.User.ID}}" method="post">
68 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
69 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
70 <input type="submit" value="bloki" class="btn-link">
71 </form>
72 {{end}}
73 -
74 {{if .User.Pleroma.Relationship.Muting}}
75 <form class="d-inline" action="/unmute/{{.User.ID}}" method="post">
76 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
77 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
78 <input type="submit" value="malsilentigi" class="btn-link">
79 </form>
80 {{else}}
81 <a href="/mute/{{.User.ID}}"> silentigi </a>
82 {{end}}
83 {{if .User.Pleroma.Relationship.Following}}
84 -
85 {{if .User.Pleroma.Relationship.ShowingReblogs}}
86 <form class="d-inline" action="/follow/{{.User.ID}}?reblogs=false" method="post">
87 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
88 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
89 <input type="submit" value="kaŝi ripetojn" class="btn-link">
90 </form>
91 {{else}}
92 <form class="d-inline" action="/follow/{{.User.ID}}" method="post">
93 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
94 <input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
95 <input type="submit" value="montri ripetojn" class="btn-link">
96 </form>
97 {{end}}
98 {{end}}
99 </div>
100 {{end}}
101 <div>
102 <a href="/user/{{.User.ID}}"> statuses ({{.User.StatusesCount}}) </a> -
103 <a href="/user/{{.User.ID}}/following"> abonatoj ({{.User.FollowingCount}}) </a> -
104 <a href="/user/{{.User.ID}}/followers"> abonantoj ({{.User.FollowersCount}}) </a> -
105 <a href="/user/{{.User.ID}}/media"> dosieroj </a>
106 </div>
107 {{if .IsCurrent}}
108 <div>
109 <a href="/user/{{.User.ID}}/bookmarks"> legosignoj </a>
110 - <a href="/user/{{.User.ID}}/likes"> ŝatataj </a>
111 - <a href="/user/{{.User.ID}}/mutes"> silentigitaj </a>
112 - <a href="/user/{{.User.ID}}/blocks"> blokitaj </a>
113 {{if .User.Locked}}- <a href="/user/{{.User.ID}}/requests"> petoj </a>{{end}}
114 </div>
115 {{end}}
116 <div>
117 <a href="/usersearch/{{.User.ID}}"> serĉi afiŝojn </a>
118 {{if .IsCurrent}} - <a href="/filters"> filtriloj </a> {{end}}
119 </div>
120 </div>
121 <div class="user-profile-decription">
122 {{EmojiFilter .User.Note .User.Emojis | Raw}}
123 </div>
124 {{if .User.Fields}}
125 <div class="user-fields">
126 {{range .User.Fields}}
127 <div>{{EmojiFilter .Name $.Data.User.Emojis | Raw}} - {{EmojiFilter .Value $.Data.User.Emojis | Raw}}</div>
128 {{end}}
129 </div>
130 {{end}}
131 </div>
132 </div>
133
134 {{if eq .Type ""}}
135 <div class="page-title"> Afiŝoj </div>
136 {{range .Statuses}}
137 {{template "status.tmpl" (WithContext . $.Ctx)}}
138 {{else}}
139 <div class="no-data-found">Neniu datumo trovita</div>
140 {{end}}
141
142 {{else if eq .Type "following"}}
143 <div class="page-title"> Abonataj </div>
144 {{template "userlist.tmpl" (WithContext .Users $.Ctx)}}
145
146 {{else if eq .Type "followers"}}
147 <div class="page-title"> Abonantoj </div>
148 {{template "userlist.tmpl" (WithContext .Users $.Ctx)}}
149
150 {{else if eq .Type "media"}}
151 <div class="page-title"> Afiŝoj kun dosieroj </div>
152 {{range .Statuses}}
153 {{template "status.tmpl" (WithContext . $.Ctx)}}
154 {{else}}
155 <div class="no-data-found">Neniu datumo trovita</div>
156 {{end}}
157
158 {{else if eq .Type "bookmarks"}}
159 <div class="page-title"> Legosignoj </div>
160 {{range .Statuses}}
161 {{template "status.tmpl" (WithContext . $.Ctx)}}
162 {{else}}
163 <div class="no-data-found">Neniu datumo trovita</div>
164 {{end}}
165
166 {{else if eq .Type "likes"}}
167 <div class="page-title"> Ŝatataj </div>
168 {{range .Statuses}}
169 {{template "status.tmpl" (WithContext . $.Ctx)}}
170 {{else}}
171 <div class="no-data-found">Neniu datumo trovita</div>
172 {{end}}
173
174 {{else if eq .Type "mutes"}}
175 <div class="page-title"> Silentigitaj </div>
176 {{template "userlist.tmpl" (WithContext .Users $.Ctx)}}
177
178 {{else if eq .Type "blocks"}}
179 <div class="page-title"> Blocks </div>
180 {{template "userlist.tmpl" (WithContext .Users $.Ctx)}}
181
182 {{else if eq .Type "requests"}}
183 <div class="page-title"> Abonpetoj </div>
184 {{template "requestlist.tmpl" (WithContext .Users $.Ctx)}}
185 {{end}}
186
187 <div class="pagination">
188 {{if .NextLink}}
189 <a href="{{.NextLink}}">[sekva]</a>
190 {{end}}
191 </div>
192
193 {{template "footer.tmpl"}}
194 {{end}}