From e8574ebd0a0af3ebede6294a2eaf3ce8ff470807 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Tue, 27 Dec 2016 00:47:47 +0100 Subject: [PATCH] Use TemplateData for dashboard --- http/http.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/http/http.go b/http/http.go index 81c4937..64ad48c 100644 --- a/http/http.go +++ b/http/http.go @@ -61,7 +61,11 @@ func (h *Handler) dashboard(c *gin.Context) { return } - c.HTML(http.StatusOK, "dashboard", token) + d := TemplateData{ + Token: token, + budgetService: h.Service, + } + c.HTML(http.StatusOK, "dashboard", d) } func (h *Handler) restricted(c *gin.Context) {