Skip to content

Commit

Permalink
Move photos to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Apr 3, 2024
1 parent bf4a590 commit db99b0d
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 6 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
7 changes: 6 additions & 1 deletion src/puck/database.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ import sqlight
pub type Connection =
sqlight.Connection

const connection_config = "
pragma foreign_keys = on;
pragma auto_vacuum = incremental;
"

pub fn with_connection(path: String, f: fn(sqlight.Connection) -> a) -> a {
use db <- sqlight.with_connection(path)

// Enable configuration we want for all connections
let assert Ok(_) = sqlight.exec("pragma foreign_keys = on;", db)
let assert Ok(_) = sqlight.exec(connection_config, db)

f(db)
}
Expand Down
9 changes: 4 additions & 5 deletions src/puck/web/event.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,10 @@ fn attendance_html(ctx: Context) -> html.Node(a) {
html.p_text([attrs.class("center")], "Welcome, friend!"),
]),
]),
image_grid(
// "entrance", "firepit", "roundhouse", "tea",
// "tipi", "flag", "belltent", "boat",
[],
),
// image_grid([
// "entrance", "firepit", "roundhouse", "tea", "tipi", "flag", "belltent",
// "boat",
// ]),
html.div([attrs.class("content")], [
html.h2_text([], "What is it?"),
p(
Expand Down

0 comments on commit db99b0d

Please sign in to comment.