diff --git a/src/main.v b/src/main.v index 2cecc26..79db6a8 100644 --- a/src/main.v +++ b/src/main.v @@ -306,6 +306,11 @@ pub fn (mut app App) banner() vweb.Result { return $vweb.html() } +@['/stats'; get] +pub fn (mut app App) stats() vweb.Result { + return $vweb.html() +} + @['/status_update'; post] pub fn (mut app App) status_update() vweb.Result { if person := app.do_status_update(app.form['id'].int()) { diff --git a/src/templates/stats.html b/src/templates/stats.html new file mode 100644 index 0000000..7662553 --- /dev/null +++ b/src/templates/stats.html @@ -0,0 +1,51 @@ + + + +
+ + +Country | +Gold | +Silver | +Bronze | +
---|---|---|---|
USA | +46 | +37 | +38 | +
GBR | +27 | +23 | +17 | +
CHN | +26 | +18 | +26 | +