krz/skunky-art
Alternative privacy frontend for DeviantArt.
clone: git clone https://gitbay.org/krz/skunky-art.git
v1.3.8: static/html/gruser.htm · raw
1<!DOCTYPE html>
2<html>
3 {{template "head" . }}
4 <main>
5 <header>
6 <h1>
7 <a href="{{.BasePath}}">HOME</a>
8 | <a href="{{.BasePath}}dd">DD</a>
9 {{if ne .Type 'f'}}
10 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type={{if eq .Type 'a'}}gallery">Gallery{{else}}about">About{{end}}</a>
11 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=favourites">Favourites</a>
12 {{else}}
13 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=about">About</a>
14 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=gallery">Gallery</a>
15 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=favourites">Favourites</a>
16 {{end}}
17 | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=gallery&atom=true">RSS</a>
18 </h1>
19 <form method="get" action="{{.BasePath}}search">
20 <input type="gallery" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
21 <input type="hidden" name="usr" value="{{.Templates.GroupUser.GR.Owner.Username}}">
22 <select name="type">
23 <option value="gallery">Gallery</option>
24 <option value="folders">Folders</option>
25 <option value="all">All</option>
26 <option value="tag">Tag</option>
27 <option value="r">Groups</option>
28 </select>
29 <button type="submit">Search!</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 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"> <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="UID">{{.Templates.GroupUser.GR.Gruser.ID}}</span>]
46 [<span title="Registration date">{{.Templates.GroupUser.CreationDate}}</span>]
47 {{if ne .Templates.GroupUser.GR.Extra.Tag ""}}
48 <i title="User's 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> Statistics</h3>
54 <p>Watchers: <b>{{.Templates.GroupUser.GR.Extra.Stats.Watchers}}</b>; Pageviews: <b>{{.Templates.GroupUser.GR.Extra.Stats.Pageviews}}</b></b>
55 {{else}}
56 <h3 id="stats"><a href="#stats">#</a> Statistics</h3>
57 <p>Favourites: <b>{{.Templates.GroupUser.GR.Extra.Stats.Favourites}}</b>; Deviations: <b>{{.Templates.GroupUser.GR.Extra.Stats.Deviations}}</b>; Watchers: <b>{{.Templates.GroupUser.GR.Extra.Stats.Watchers}}</b>
58 <p>Watching: <b>{{.Templates.GroupUser.GR.Extra.Stats.Watching}}</b>; Pageviews: <b>{{.Templates.GroupUser.GR.Extra.Stats.Pageviews}}</b>; Comments Made: <b>{{.Templates.GroupUser.GR.Extra.Stats.CommentsMade}}</b>; 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>