aboutsummaryrefslogtreecommitdiff
path: root/modules/lists
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lists')
-rw-r--r--modules/lists/lists.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/lists/lists.go b/modules/lists/lists.go
index 519bb36..970b15b 100644
--- a/modules/lists/lists.go
+++ b/modules/lists/lists.go
@@ -207,10 +207,7 @@ func (m *Module) ProvideDashboardData(user *charakterin.User) []grilist.Dashboar
207} 207}
208 208
209func (m *Module) viewList(w http.ResponseWriter, r *http.Request, p httprouter.Params) { 209func (m *Module) viewList(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
210 loggedIn := false 210 user, _ := m.g.Charakterin.GetUserFromRequest(r)
211 if user, _ := m.g.Charakterin.GetUserFromRequest(r); user != nil {
212 loggedIn = true
213 }
214 sid := p.ByName("id") 211 sid := p.ByName("id")
215 212
216 id, err := strconv.Atoi(sid) 213 id, err := strconv.Atoi(sid)
@@ -225,8 +222,8 @@ func (m *Module) viewList(w http.ResponseWriter, r *http.Request, p httprouter.P
225 return 222 return
226 } 223 }
227 224
228 data := make(map[string]interface{}) 225 data := m.g.Renderer.DefaultData()
229 data["loggedIn"] = loggedIn 226 data["user"] = user
230 data["list"] = list 227 data["list"] = list
231 228
232 m.g.Renderer.RenderPage("list", w, data) 229 m.g.Renderer.RenderPage("list", w, data)