aboutsummaryrefslogtreecommitdiff
path: root/modules/grils
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-10-11 18:53:22 (UTC)
committerrtz12 <koenig@fagott.pw>2016-10-11 18:53:22 (UTC)
commitfbd746aef8c78067593f901afb0f255574392499 (patch)
tree10b91eabfc5696d5e0fe27f1649bd72b9ed461e5 /modules/grils
parentbf51b2e4a035a988b9e9cef737966846c619dace (diff)
NSA implementiert
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 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 {