krz/skunky-art
Alternative privacy frontend for DeviantArt.
clone: git clone https://gitbay.org/krz/skunky-art.git
main: static/html/gruser.htm · raw
1<!DOCTYPE html>
2<html lang="en">
3 {{template "head" . }}
4 <main>
5 <header>
6 <h1>
7 <a href="{{.BasePath}}">{{T "nav.home"}}</a>
8 | <a href="{{.BasePath}}dd">{{T "nav.dd"}}</a>
9 {{if ne .Type 'f'}}
10 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type={{if eq .Type 'a'}}gallery">{{T "nav.gallery"}}{{else}}about">{{T "nav.about"}}{{end}}</a>
11 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=favourites">{{T "nav.favourites"}}</a>
12 {{else}}
13 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=about">{{T "nav.about"}}</a>
14 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=gallery">{{T "nav.gallery"}}</a>
15 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=favourites">{{T "nav.favourites"}}</a>
16 {{end}}
17 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=gallery&atom=true">{{T "nav.rss"}}</a>
18 </h1>
19 <form method="get" action="{{.BasePath}}search">
20 <input type="text" name="q" aria-label="Search query" placeholder="{{T "search.placeholder"}}" autocomplete="off" autocapitalize="none" spellcheck="false">
21 <input type="hidden" name="usr" value="{{.Templates.GroupUser.GR.Owner.Username}}">
22 <select name="type" aria-label="Search type">
23 <option value="gallery">{{T "nav.gallery"}}</option>
24 <option value="folders">{{T "search.folders"}}</option>
25 <option value="all">{{T "search.all"}}</option>
26 <option value="tag">{{T "search.tag"}}</option>
27 <option value="r">{{T "search.groups"}}</option>
28 </select>
29 <button type="submit">{{T "search.submit"}}</button>
30 </form> <h1>| {{.Templates.GroupUser.GR.Owner.Username}}</h1>
31 </header>
32 {{if eq .Type 'a'}}
33 {{if and (and (ne .Templates.About.Nsfw true) (ne .Templates.GroupUser.About.BGMeta.NSFW true)) (ne .Templates.GroupUser.About.BG "")}}
34 <a href="{{.Templates.GroupUser.About.BGMeta.Url}}" class="ubg"><img alt="Profile background" title="{{if ne .Templates.GroupUser.GR.Owner.Username .Templates.GroupUser.About.BGMeta.Author.Username}}
35 {{.Templates.GroupUser.About.BGMeta.Author.Username}} - {{end}}{{.Templates.GroupUser.About.BGMeta.Title}}" src="{{.Templates.GroupUser.About.BG}}"></a>
36 {{end}}
37
38 <img src="{{.BasePath}}media/emojitar/{{.Templates.GroupUser.GR.Owner.Username}}?type=a" width="30px" height="30px" alt="{{.Templates.GroupUser.GR.Owner.Username}} avatar"> <b>{{.Templates.GroupUser.GR.Owner.Username}}</b>
39 {{if (eq .Templates.GroupUser.About.A.Gender "male")}}
40 ♂️
41 {{end}}
42 {{if (eq .Templates.GroupUser.About.A.Gender "female")}}
43 ♀️
44 {{end}}
45 [<span title="{{T "user.uid"}}">{{.Templates.GroupUser.GR.Gruser.ID}}</span>]
46 [<span title="{{T "user.registered"}}">{{.Templates.GroupUser.CreationDate}}</span>]
47 {{if ne .Templates.GroupUser.GR.Extra.Tag ""}}
48 <i title="{{T "user.tag"}}">"{{.Templates.GroupUser.GR.Extra.Tag}}"</i>{{end}} {{if ne .Templates.GroupUser.About.A.Country ""}}
49 (<b>{{.Templates.GroupUser.About.A.Country}}</b>)
50 {{end}}
51
52 {{if .Templates.GroupUser.Group}}
53 <h3 id="stats"><a href="#stats">#</a> {{T "user.statistics"}}</h3>
54 <p>{{T "user.watchers"}}: <b>{{.Templates.GroupUser.GR.Extra.Stats.Watchers}}</b>; {{T "user.pageviews"}}: <b>{{.Templates.GroupUser.GR.Extra.Stats.Pageviews}}</b></b>
55 {{else}}
56 <h3 id="stats"><a href="#stats">#</a> {{T "user.statistics"}}</h3>
57 <p>{{T "nav.favourites"}}: <b>{{.Templates.GroupUser.GR.Extra.Stats.Favourites}}</b>; {{T "user.deviations"}}: <b>{{.Templates.GroupUser.GR.Extra.Stats.Deviations}}</b>; {{T "user.watchers"}}: <b>{{.Templates.GroupUser.GR.Extra.Stats.Watchers}}</b>
58 <p>{{T "user.watching"}}: <b>{{.Templates.GroupUser.GR.Extra.Stats.Watching}}</b>; {{T "user.pageviews"}}: <b>{{.Templates.GroupUser.GR.Extra.Stats.Pageviews}}</b>; {{T "user.comments"}}: <b>{{.Templates.GroupUser.GR.Extra.Stats.CommentsMade}}</b>; {{T "user.friends"}}: <b>{{.Templates.GroupUser.GR.Extra.Stats.Friends}}</b></p>
59 {{end}}
60
61 {{if ne .Templates.GroupUser.Admins ""}}
62 <h3 id="admins"><a href="#admins">#</a> Group admins</h3>
63 <div class="plates admins">
64 {{.Templates.GroupUser.Admins}}
65 </div>
66 {{end}}
67
68 {{if ne .Templates.GroupUser.About.Interests ""}}
69 <h3 id="interests"><a href="#interests">#</a> Interests</h3>
70 {{.Templates.GroupUser.About.Interests}}
71 {{end}}
72
73 {{if ne .Templates.GroupUser.About.Social ""}}
74 <h3 id="social"><a href="#social">#</a> Social Links</h3>
75 {{.Templates.GroupUser.About.Social}}
76 {{end}}
77
78 {{if ne .Templates.GroupUser.About.DescriptionFormatted ""}}
79 <h3 id="about"><a href="#about">#</a> About me</h3>
80 {{.Templates.GroupUser.About.DescriptionFormatted}}
81 {{end}}
82 {{if ne .Templates.GroupUser.About.Comments ""}}
83 <br>
84 <h3 id="comments"><a href="#comments">#</a> Comments</h3>
85 {{.Templates.GroupUser.About.Comments}}
86 {{end}}
87 {{else}}
88 {{.Templates.GroupUser.Gallery.Folders}}
89 {{.Templates.GroupUser.Gallery.List}}
90 {{end}}
91 </main>
92</html>