This commit is contained in:
Dominic Ferrando
2025-04-25 17:18:52 -04:00
parent 4bad0929c2
commit 964bd779e7
5 changed files with 2 additions and 9 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

+1 -1
View File
@@ -80,7 +80,7 @@ func main() {
util.DATABASE_PATH = filepath.Join(dataDir, util.DATABASE_PATH) util.DATABASE_PATH = filepath.Join(dataDir, util.DATABASE_PATH)
util.STATIC_PATH = filepath.Join(dataDir, util.STATIC_PATH) util.STATIC_PATH = filepath.Join(dataDir, util.STATIC_PATH)
db, err := sql.Open("sqlite3", util.DATABASE_PATH) db, err := sql.Open("sqlite3", util.DATABASE_PATH+"?_foreign_keys=on")
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
+1 -1
View File
@@ -49,7 +49,7 @@ body {
/* BOARD LIST */ /* BOARD LIST */
#boardList { #boardList {
font-size: 12px; font-size: 14px;
margin: 5px; margin: 5px;
} }
-7
View File
@@ -165,13 +165,6 @@ templ ThreadsCatalog(previews []CatalogThreadPreview, catalogContext CatalogCont
Lock Lock
} }
</button> </button>
<button
class="link-button"
hx-delete={ fmt.Sprintf("/admin/threads/%d", preview.ThreadId) }
hx-swap="none"
_="on htmx:afterRequest trigger refreshPosts on body"
hx-confirm="Are you sure you wish to delete this thread?"
>Delete</button>
<button <button
class="admin-dialog-close-btn link-button" class="admin-dialog-close-btn link-button"
_={ fmt.Sprintf("on click call #%s-dialog.close()", elThreadId) } _={ fmt.Sprintf("on click call #%s-dialog.close()", elThreadId) }