mirror of
https://git.macaw.me/skunky/SkunkyArt.git
synced 2025-04-04 05:27:35 +03:00
Галерея, папки и группы
This commit is contained in:
parent
ed031b3530
commit
68248094e8
5 changed files with 141 additions and 48 deletions
13
app/util.go
13
app/util.go
|
@ -19,6 +19,15 @@ func (s skunkyart) ExecuteTemplate(file string, data any) {
|
|||
wr(s.Writer, buf.String())
|
||||
}
|
||||
|
||||
func (s skunkyart) UrlBuilder(strs ...string) string {
|
||||
var str strings.Builder
|
||||
for _, x := range strs {
|
||||
str.WriteString(x)
|
||||
str.WriteString("/")
|
||||
}
|
||||
return str.String()
|
||||
}
|
||||
|
||||
func (s skunkyart) ReturnHTTPError(status int) {
|
||||
s.Writer.WriteHeader(status)
|
||||
|
||||
|
@ -142,6 +151,10 @@ func (s skunkyart) NavBase(c dlist) string {
|
|||
list.WriteString("&q=")
|
||||
list.WriteString(s.Query)
|
||||
}
|
||||
if f := s.Args.Get("folder"); f != "" {
|
||||
list.WriteString("&folder=")
|
||||
list.WriteString(f)
|
||||
}
|
||||
list.WriteString(`">`)
|
||||
list.WriteString(msg)
|
||||
list.WriteString("</a> ")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue