db fix
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
+1
-1
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ body {
|
|||||||
/* BOARD LIST */
|
/* BOARD LIST */
|
||||||
|
|
||||||
#boardList {
|
#boardList {
|
||||||
font-size: 12px;
|
font-size: 14px;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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) }
|
||||||
|
|||||||
Reference in New Issue
Block a user