aboutsummaryrefslogtreecommitdiff
path: root/modules/grils
diff options
context:
space:
mode:
Diffstat (limited to 'modules/grils')
-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 1b1bb5f..4a9990f 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 "fagott.pw/grilist/models" 17 "fagott.pw/grilist/models"
@@ -237,6 +238,7 @@ func (m *GrilsModule) FromIDs(ids []int) ([]*models.Gril, error) {
237 238
238func (m *GrilsModule) viewGril(w http.ResponseWriter, r *http.Request, p httprouter.Params) { 239func (m *GrilsModule) viewGril(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
239 user, _ := m.g.Charakterin.GetUserFromRequest(r) 240 user, _ := m.g.Charakterin.GetUserFromRequest(r)
241 el := m.g.EventLogger(r)
240 sid := p.ByName("id") 242 sid := p.ByName("id")
241 243
242 id, err := strconv.Atoi(sid) 244 id, err := strconv.Atoi(sid)
@@ -288,6 +290,9 @@ func (m *GrilsModule) viewGril(w http.ResponseWriter, r *http.Request, p httprou
288 data["SimilarGrils"] = similar 290 data["SimilarGrils"] = similar
289 291
290 m.g.Renderer.RenderPage("gril", w, data) 292 m.g.Renderer.RenderPage("gril", w, data)
293 el.ViewGril(user, eventlogging.ViewGrilData{
294 GrilID: gril.ID,
295 })
291} 296}
292 297
293func pgArray(array []byte) []string { 298func pgArray(array []byte) []string {