summaryrefslogtreecommitdiff
path: root/static/html/deviantion.htm
diff options
context:
space:
mode:
authorlost+skunk <[email protected]>2024-08-13 15:59:52 +0300
committerlost+skunk <[email protected]>2024-08-13 15:59:52 +0300
commit1537da9b16dfda1ecb2730b5d1de3b9005397618 (patch)
tree0cce5db0cb6393d369b7f8207d495645510276f2 /static/html/deviantion.htm
parent4db018fb7f01669cb5e4c1da4b56ccfe3dbadd6f (diff)
downloadskunky-art-1537da9b16dfda1ecb2730b5d1de3b9005397618.tar.gz
skunky-art-1537da9b16dfda1ecb2730b5d1de3b9005397618.tar.bz2
skunky-art-1537da9b16dfda1ecb2730b5d1de3b9005397618.zip
темплейты в бинарнике и улучшенная система кеша
Diffstat (limited to 'static/html/deviantion.htm')
-rw-r--r--static/html/deviantion.htm44
1 files changed, 44 insertions, 0 deletions
diff --git a/static/html/deviantion.htm b/static/html/deviantion.htm
new file mode 100644
index 0000000..f357dd7
--- /dev/null
+++ b/static/html/deviantion.htm
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html>
+ {{template "head" . }}
+ <main>
+ {{template "header" . }}
+ <figure>
+ <img src="{{.BasePath}}media/emojitar/{{.Templates.Deviation.Post.Deviation.Author.Username}}?type=a" width="30px">
+ <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)}}
+ <span class="dd" title="Daily Deviation!"><b>{{.Templates.Deviation.Post.Deviation.Title}}</b></span>
+ {{else}}{{.Templates.Deviation.Post.Deviation.Title}}{{end}}
+ {{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}}
+ {{if (.Templates.Deviation.Post.Deviation.NSFW)}}[<span class="nsfw">NSFW</span>]{{end}}
+ </span>
+ <br>
+ {{if (ne .Templates.Deviation.Post.IMG "")}}
+ <a href="{{.Templates.Deviation.Post.IMG}}" title="open/download image"><img src="{{.Templates.Deviation.Post.IMG}}" width="50%"></a>
+ <br>
+ {{end}}
+ {{if (ne .Templates.Deviation.Tags "")}}
+ {{.Templates.Deviation.Tags}}<br>
+ {{end}}
+ <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>
+ <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>
+ </span>
+ {{if (ne .Templates.Deviation.Post.Description "")}}
+ <figcaption>
+ <details>
+ <summary>Description</summary>
+ {{.Templates.Deviation.Post.Description}}
+ </details>
+ </figcaption>
+ {{end}}
+ {{if ne .Templates.Deviation.Related ""}}
+ <details>
+ <summary>Related content</summary>
+ {{.Templates.Deviation.Related}}
+ </details>
+ {{end}}
+ {{if (ne .Templates.Deviation.Comments "")}}
+ {{.Templates.Deviation.Comments}}
+ {{end}}
+ </figure>
+ </main>
+</html> \ No newline at end of file