aboutsummaryrefslogtreecommitdiff
path: root/modules/grils/grils.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/grils/grils.go')
-rw-r--r--modules/grils/grils.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/grils/grils.go b/modules/grils/grils.go
index 4913e11..debb77b 100644
--- a/modules/grils/grils.go
+++ b/modules/grils/grils.go
@@ -11,6 +11,7 @@ import (
11 11
12 "fagott.pw/charakterin" 12 "fagott.pw/charakterin"
13 "fagott.pw/grilist/cache" 13 "fagott.pw/grilist/cache"
14 "fagott.pw/grilist/eventlogging"
14 "fagott.pw/grilist/frontend" 15 "fagott.pw/grilist/frontend"
15 "fagott.pw/grilist/grilist" 16 "fagott.pw/grilist/grilist"
16 17
@@ -241,6 +242,7 @@ func (m *GrilsModule) FromIDs(ids []int) ([]*Gril, error) {
241 242
242func (m *GrilsModule) viewGril(w http.ResponseWriter, r *http.Request, p httprouter.Params) { 243func (m *GrilsModule) viewGril(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
243 user, _ := m.g.Charakterin.GetUserFromRequest(r) 244 user, _ := m.g.Charakterin.GetUserFromRequest(r)
245 el := m.g.EventLogger(r)
244 sid := p.ByName("id") 246 sid := p.ByName("id")
245 247
246 id, err := strconv.Atoi(sid) 248 id, err := strconv.Atoi(sid)
@@ -292,6 +294,9 @@ func (m *GrilsModule) viewGril(w http.ResponseWriter, r *http.Request, p httprou
292 data["SimilarGrils"] = similar 294 data["SimilarGrils"] = similar
293 295
294 m.g.Renderer.RenderPage("gril", w, data) 296 m.g.Renderer.RenderPage("gril", w, data)
297 el.ViewGril(user, eventlogging.ViewGrilData{
298 GrilID: gril.ID,
299 })
295} 300}
296 301
297func pgArray(array []byte) []string { 302func pgArray(array []byte) []string {