From fa7cc403aaf9cfc61a54cbbc132c361965e747ae Mon Sep 17 00:00:00 2001
From: hanemile
Date: Sun, 19 Jul 2020 13:10:44 +0200
Subject: past talks can now be seen
---
config.yml | 4 ++--
go.mod | 2 +-
hosted/tmpl/index.html | 2 ++
hosted/tmpl/past.html | 31 ++++++++++++++++++++++++
hosted/tmpl/pastTalks.html | 41 +++++++++++++++++++++++++++++++
src/db.go | 5 ++--
src/db/go.mod | 1 +
src/db/go.sum | 3 +++
src/db/talk.go | 39 +++++++++++++++++++++++++++---
src/http.go | 60 +++++++++++++++++++++++++++++++++++++++++++---
10 files changed, 177 insertions(+), 11 deletions(-)
create mode 100644 hosted/tmpl/past.html
create mode 100644 hosted/tmpl/pastTalks.html
diff --git a/config.yml b/config.yml
index ba730a0..8339da0 100644
--- a/config.yml
+++ b/config.yml
@@ -1,6 +1,6 @@
# logging verbosity leve (1-7) 1=panic, 7=trace
verbose:
- level: 6
+ level: 7
# Host information (ip to bind to and port to listen on)
server:
@@ -9,7 +9,7 @@ server:
# The database that should be accessed
db:
- addr: "postgres:5432"
+ addr: "localhost:5432"
user: "postgres"
password: "postgres"
database: "postgres"
diff --git a/go.mod b/go.mod
index 5eef6ae..42edc46 100644
--- a/go.mod
+++ b/go.mod
@@ -4,7 +4,7 @@ go 1.13
require (
git.darknebu.la/chaosdorf/freitagsfoo/src/db v0.0.0-00010101000000-000000000000
- git.darknebu.la/chaosdorf/freitagsfoo/src/structs v0.0.0-00010101000000-000000000000
+ git.darknebu.la/chaosdorf/freitagsfoo/src/structs v0.0.0-20200718235609-fc63adf55849
github.com/go-pg/pg/v9 v9.1.6
github.com/google/uuid v1.1.1
github.com/gorilla/mux v1.7.4
diff --git a/hosted/tmpl/index.html b/hosted/tmpl/index.html
index 124271a..c9bf28d 100644
--- a/hosted/tmpl/index.html
+++ b/hosted/tmpl/index.html
@@ -24,6 +24,8 @@
{{ template "upcomingTalks" . }}
+ {{ template "pastTalks" . }}
+
+
+
+
+
+ {{ template "pastTalks" . }}
+
+
+
diff --git a/hosted/tmpl/past.html b/hosted/tmpl/past.html
new file mode 100644
index 0000000..233bc55
--- /dev/null
+++ b/hosted/tmpl/past.html
@@ -0,0 +1,31 @@
+{{define "past"}}
+
+
+
+