krz/skunky-art

Alternative privacy frontend for DeviantArt.

clone: git clone https://gitbay.org/krz/skunky-art.git

v1.3.4: static/html/deviantion.htm · raw

 1<!DOCTYPE html>
 2<html>
 3    {{template "head" . }}
 4    <main>
 5        {{template "header" . }}
 6        <figure>
 7            <img src="{{.BasePath}}media/emojitar/{{.Templates.Deviation.Post.Deviation.Author.Username}}?type=a" width="30px">
 8            <span><strong><a href="{{.BasePath}}group_user?type=about&q={{.Templates.Deviation.Post.Deviation.Author.Username}}">{{.Templates.Deviation.Post.Deviation.Author.Username}}</a></strong> — {{if (.Templates.Deviation.Post.Deviation.DD)}}
 9                <span class="dd" title="Daily Deviation!"><b>{{.Templates.Deviation.Post.Deviation.Title}}</b></span>
10                {{else}}{{.Templates.Deviation.Post.Deviation.Title}}{{end}}
11                 {{if (ne .Templates.Deviation.Post.Deviation.License "none")}}<mark title="License">{{.Templates.Deviation.Post.Deviation.License}}</mark>{{end}} {{if (.Templates.Deviation.Post.Deviation.AI)}}[🤖]{{end}} 
12                 {{if (.Templates.Deviation.Post.Deviation.NSFW)}}[<span class="nsfw">NSFW</span>]{{end}}
13            </span>
14            <br>
15            {{if (ne .Templates.Deviation.Post.IMG "")}}
16            <a href="{{.Templates.Deviation.Post.IMG}}" title="open/download image"><img src="{{.Templates.Deviation.Post.IMG}}" width="50%"></a>
17            <br>
18            {{end}}
19            {{if (ne .Templates.Deviation.Tags "")}}
20            {{.Templates.Deviation.Tags}}<br>
21            {{end}}
22            <span>Published: <strong>{{.Templates.Deviation.StringTime}}</strong>; Views: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Views}}</strong>; Favourites: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Favourites}}</strong>; Downloads: <strong>{{.Templates.Deviation.Post.Deviation.Stats.Downloads}}</strong>
23            <br><a target="_blank" href="https://www.deviantart.com/{{.Templates.Deviation.Post.Deviation.Author.Username}}/art/art-{{.Templates.Deviation.Post.Deviation.ID}}">Redirect to original</a>
24            </span>
25            {{if (ne .Templates.Deviation.Post.Description "")}}
26            <figcaption>
27                <details>
28                    <summary>Description</summary>
29                    {{.Templates.Deviation.Post.Description}}
30                </details>
31            </figcaption>
32            {{end}}
33            {{if ne .Templates.Deviation.Related ""}}
34            <details>
35                <summary>Related content</summary>
36                {{.Templates.Deviation.Related}}
37            </details>
38            {{end}}
39            {{if (ne .Templates.Deviation.Comments "")}}
40            {{.Templates.Deviation.Comments}}
41            {{end}}
42        </figure>
43    </main>
44</html>