diff options
| author | lost+skunk <[email protected]> | 2024-06-30 14:40:27 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-06-30 14:40:27 +0300 |
| commit | ed031b353078d0b58a67981de4d463c8563a20d7 (patch) | |
| tree | 2c71d700de7f5661a97690cf2b6a313bf5263355 /html | |
| parent | a8633b828f3e4e2d232e2194d9f2b85cdcd9e8db (diff) | |
| download | skunky-art-ed031b353078d0b58a67981de4d463c8563a20d7.tar.gz skunky-art-ed031b353078d0b58a67981de4d463c8563a20d7.tar.bz2 skunky-art-ed031b353078d0b58a67981de4d463c8563a20d7.zip | |
попытка реализовать галерею. так сыро потому что мне скоро уезжать
Diffstat (limited to 'html')
| -rw-r--r-- | html/deviantion.htm | 2 | ||||
| -rw-r--r-- | html/gruser.htm | 81 | ||||
| -rw-r--r-- | html/search.htm | 10 |
3 files changed, 62 insertions, 31 deletions
diff --git a/html/deviantion.htm b/html/deviantion.htm index 75484f6..6308c91 100644 --- a/html/deviantion.htm +++ b/html/deviantion.htm @@ -18,7 +18,7 @@ </header> <figure> <img src="/media/{{.Post.Deviation.Author.Username}}?type=a" width="30px"> - <span><strong><a href="/user/{{.Post.Deviation.Author.Username}}">{{.Post.Deviation.Author.Username}}</a></strong> — {{if (.Post.Deviation.DD)}} + <span><strong><a href="/group_user?type=about&q={{.Post.Deviation.Author.Username}}">{{.Post.Deviation.Author.Username}}</a></strong> — {{if (.Post.Deviation.DD)}} <span class="dd" title="Daily Deviation!"><b>{{.Post.Deviation.Title}}</b></span> {{else}}{{.Post.Deviation.Title}}{{end}} {{if (ne .Post.Deviation.License "none")}}<mark title="License">{{.Post.Deviation.License}}</mark>{{end}} {{if (.Post.Deviation.AI)}}[🤖]{{end}} diff --git a/html/gruser.htm b/html/gruser.htm index b81ceb1..5a5c801 100644 --- a/html/gruser.htm +++ b/html/gruser.htm @@ -1,43 +1,74 @@ <!DOCTYPE html> <html> <head> - <title>SkunkyArt | {{.GR.Owner.Username}}</title> + <title>SkunkyArt | + {{if eq .Type 'a'}} + {{.Templates.GroupUser.GR.Owner.Username}} + {{else}} + gallery of {{.Templates.GroupUser.GR.Owner.Username}} + {{end}} + </title> <link rel="stylesheet" href="/gui/css/skunky.css"> </head> <main> <header> - <h1><a href="/">HOME</a> | <a href="/dd">DD</a></h1> - <form method="get" action="/search"> - <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false"> + <h1><a href="/">HOME</a> | <a href="/dd">DD</a> + | <a href="?q={{.Templates.GroupUser.GR.Owner.Username}}&type={{if eq .Type 'a'}}gallery">Gallery</a></h1>{{else}}about">About</a></h1> + {{end}} + <form method="get" action="/search"> + <input type="gallery" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false"> + <input type="hidden" name="usr" value="{{.Templates.GroupUser.GR.Owner.Username}}"> <select name="type"> <option value="all">All</option> <option value="tag">Tag</option> + <option value="gallery">Gallery</option> </select> <button type="submit">Search!</button> </form> </header> - <img src="/media/{{.GR.Owner.Username}}?type=a" width="30px" height="30px"> <b>{{.GR.Owner.Username}}</b> - {{if (eq .About.A.Gender "male")}} - ♂️ - {{end}} - {{if (eq .About.A.Gender "female")}} - ♀️ - {{end}} - [<span title="UID">{{.GR.Gruser.ID}}</span>] - [<span title="Registration date">{{.CreationDate}}</span>] - <i title="User's Tag">"{{.GR.Extra.Tag}}"</i> + {{if eq .Type 'a'}} + {{if ne .Templates.GroupUser.About.BG ""}} + <a href="{{.Templates.GroupUser.About.BGMeta.Url}}" class="ubg"><img title="{{if ne .Templates.GroupUser.GR.Owner.Username .Templates.GroupUser.About.BGMeta.Author.Username}} + {{.Templates.GroupUser.About.BGMeta.Author.Username}} - {{end}}{{.Templates.GroupUser.About.BGMeta.Title}}" src="{{.Templates.GroupUser.About.BG}}"></a> + {{end}} - <h3 id="stats"><a href="#stats">#</a> Statistics</h3> - <p>Favourites: <b>{{.GR.Extra.Stats.Favourites}}</b>; Deviations: <b>{{.GR.Extra.Stats.Deviations}}</b>; Watchers: <b>{{.GR.Extra.Stats.Watchers}}</b> - <p>Watching: <b>{{.GR.Extra.Stats.Watching}}</b>; Pageviews: <b>{{.GR.Extra.Stats.Pageviews}}</b>; Comments Made: <b>{{.GR.Extra.Stats.CommentsMade}}</b>; Friends: <b>{{.GR.Extra.Stats.Friends}}</b></p> - - <h3 id="interests"><a href="#interests">#</a> Interests</h3> - {{.About.Interests}} + <img src="/media/{{.Templates.GroupUser.GR.Owner.Username}}?type=a" width="30px" height="30px"> <b>{{.Templates.GroupUser.GR.Owner.Username}}</b> + {{if (eq .Templates.GroupUser.About.A.Gender "male")}} + ♂️ + {{end}} + {{if (eq .Templates.GroupUser.About.A.Gender "female")}} + ♀️ + {{end}} + [<span title="UID">{{.Templates.GroupUser.GR.Gruser.ID}}</span>] + [<span title="Registration date">{{.Templates.GroupUser.CreationDate}}</span>] + {{if ne .Templates.GroupUser.GR.Extra.Tag ""}} + <i title="User's Tag">"{{.Templates.GroupUser.GR.Extra.Tag}}"</i>{{end}} (<b>{{.Templates.GroupUser.About.A.Country}}</b>) - <h3 id="social"><a href="#social">#</a> Social Links</h3> - {{.About.Social}} + <h3 id="stats"><a href="#stats">#</a> Statistics</h3> + <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> + <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> + + {{if ne .Templates.GroupUser.About.Interests ""}} + <h3 id="interests"><a href="#interests">#</a> Interests</h3> + {{.Templates.GroupUser.About.Interests}} + {{end}} - <h3 id="about"><a href="#about">#</a> About me</h3> - {{.About.DescriptionFormatted}} + {{if ne .Templates.GroupUser.About.Social ""}} + <h3 id="social"><a href="#social">#</a> Social Links</h3> + {{.Templates.GroupUser.About.Social}} + {{end}} + + {{if ne .Templates.GroupUser.About.DescriptionFormatted ""}} + <h3 id="about"><a href="#about">#</a> About me</h3> + {{.Templates.GroupUser.About.DescriptionFormatted}} + {{end}} + {{if ne .Templates.GroupUser.About.Comments ""}} + <br> + <h3 id="comments"><a href="#comments">#</a> Comments</h3> + {{.Templates.GroupUser.About.Comments}} + {{end}} + {{else}} + {{.Templates.GroupUser.Gallery.List}} + {{end}} </main> -</html>
\ No newline at end of file +</html> diff --git a/html/search.htm b/html/search.htm index 8ab9438..a78feb6 100644 --- a/html/search.htm +++ b/html/search.htm @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <title>SkunkyArt | Search</title> + <title>SkunkyArt | Search "{{.Query}}"</title> <link rel="stylesheet" href="/gui/css/skunky.css"> </head> <main> @@ -16,11 +16,11 @@ <button type="submit">Search!</button> </form> </header> - {{if (ne .List "")}} - {{if (ne .Search.Total 0)}} - <h1>Total resuls: {{.Search.Total}}</h1> + {{if ne .Templates.Search.List ""}} + {{if ne .Templates.Search.Content.Total 0}} + <h1>Total resuls: {{.Templates.Search.Content.Total}}</h1> {{end}} - {{.List}} + {{.Templates.Search.List}} {{else}} <p>No results :(</p> {{end}} |
