summaryrefslogtreecommitdiffhomepage
path: root/derelict.go
diff options
context:
space:
mode:
Diffstat (limited to 'derelict.go')
-rw-r--r--derelict.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/derelict.go b/derelict.go
index 1c93399..1d49636 100644
--- a/derelict.go
+++ b/derelict.go
@@ -84,6 +84,7 @@ func handleRecent(w http.ResponseWriter, r *http.Request) {
}
func handleView(w http.ResponseWriter, r *http.Request) {
- id := mux.Vars(r)["id"]
- templates.ExecuteTemplate(w, "view", id)
+ battle := Battle{Id: mux.Vars(r)["id"]}
+ storage.LoadBattle(&battle)
+ templates.ExecuteTemplate(w, "view", &battle)
}