mirror of
https://git.macaw.me/skunky/SkunkyArt.git
synced 2025-04-03 04:57:36 +03:00
user favourites
This commit is contained in:
parent
513543cc7a
commit
2f8c35ba32
9 changed files with 147 additions and 121 deletions
|
@ -3,14 +3,25 @@
|
|||
{{template "head" . }}
|
||||
<main>
|
||||
<header>
|
||||
<h1><a href="{{.BasePath}}">HOME</a> | <a href="{{.BasePath}}dd">DD</a>
|
||||
| <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type={{if eq .Type 'a'}}gallery">Gallery{{else}}about">About{{end}}</a>
|
||||
| <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=gallery&atom=true">RSS</a></h1>
|
||||
<h1>
|
||||
<a href="{{.BasePath}}">HOME</a>
|
||||
| <a href="{{.BasePath}}dd">DD</a>
|
||||
{{if ne .Type 'f'}}
|
||||
| <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type={{if eq .Type 'a'}}gallery">Gallery{{else}}about">About{{end}}</a>
|
||||
| <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=favourites">Favourites</a>
|
||||
{{else}}
|
||||
| <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=about">About</a>
|
||||
| <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=gallery">Gallery</a>
|
||||
| <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=favourites">Favourites</a>
|
||||
{{end}}
|
||||
| <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=gallery&atom=true">RSS</a>
|
||||
</h1>
|
||||
<form method="get" action="{{.BasePath}}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="gallery">Gallery</option>
|
||||
<option value="folders">Folders</option>
|
||||
<option value="all">All</option>
|
||||
<option value="tag">Tag</option>
|
||||
<option value="r">Groups</option>
|
||||
|
|
|
@ -5,12 +5,13 @@
|
|||
"{{.QueryRaw}}"
|
||||
{{else if eq .Endpoint "post"}}
|
||||
{{.Templates.Deviation.Post.Deviation.Author.Username}} — {{.Templates.Deviation.Post.Deviation.Title}}
|
||||
{{else if eq .Type 'a'}}
|
||||
{{if .Templates.GroupUser.GR.Owner.Username}}
|
||||
{{.Templates.GroupUser.GR.Owner.Username}}
|
||||
{{else}}
|
||||
gallery of {{.Templates.GroupUser.GR.Owner.Username}}
|
||||
{{else if eq .Endpoint "group_user"}}
|
||||
{{if eq .Type 'g'}}
|
||||
gallery of
|
||||
{{else if eq .Type 'f'}}
|
||||
favourites of
|
||||
{{end}}
|
||||
{{.Templates.GroupUser.GR.Owner.Username}}
|
||||
{{else}}
|
||||
{{.Endpoint}}
|
||||
{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue