From 6b7d0485b48ac79a64ad4c4d55002a41dc3c126b Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 23 May 2023 05:04:28 +0400 Subject: [PATCH] For some reason justguestbook package isn't being automatically imported when building a package. --- web/templates/guestbook.pug | 1 + web/templates/guestbook_admin.pug | 1 + 2 files changed, 2 insertions(+) diff --git a/web/templates/guestbook.pug b/web/templates/guestbook.pug index 8fed8c4..8ee1406 100755 --- a/web/templates/guestbook.pug +++ b/web/templates/guestbook.pug @@ -21,6 +21,7 @@ block nav h1 Guestbook block content + :go:import "git.arav.su/Arav/justguestbook" :go:func Guestbook(title, owner, captcha_id string, pages_count int64, entries []*justguestbook.Entry, r *http.Request) form#new-post(action='/api/guestbook', method='POST') input(type='text' maxlength='80' placeholder='Name (Anonymous if left blank)' name='name') diff --git a/web/templates/guestbook_admin.pug b/web/templates/guestbook_admin.pug index 09e32ba..31058ee 100755 --- a/web/templates/guestbook_admin.pug +++ b/web/templates/guestbook_admin.pug @@ -17,6 +17,7 @@ block nav h1 Guestbook Admin block content + :go:import "git.arav.su/Arav/justguestbook" :go:func GuestbookAdmin(title, owner string, entries []*justguestbook.Entry, r *http.Request) section#posts if (len(entries) > 0)