diff options
author | jan <jan@ruken.pw> | 2016-01-16 21:28:59 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2016-01-16 21:28:59 (UTC) |
commit | 5812371696b716417f75eb0ba98ff14a03a5d0ad (patch) | |
tree | 50645b266d71bf45f885c44a695115462b25c969 /modules/lists | |
parent | df4c2d2cd5bf222e664167abc8c91e286e5b2c3a (diff) |
simple user view (bsp. /user/1 bzw /user/1/Admin)
Diffstat (limited to 'modules/lists')
-rw-r--r-- | modules/lists/lists.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/lists/lists.go b/modules/lists/lists.go index 85e6ce5..ec29ea8 100644 --- a/modules/lists/lists.go +++ b/modules/lists/lists.go | |||
@@ -159,7 +159,7 @@ func (m *Module) FromID(id int) (*List, error) { | |||
159 | return lists[0], nil | 159 | return lists[0], nil |
160 | } | 160 | } |
161 | 161 | ||
162 | func listsToCards(lists []*List) []frontend.Card { | 162 | func ListsToCards(lists []*List) []frontend.Card { |
163 | var cards []frontend.Card | 163 | var cards []frontend.Card |
164 | 164 | ||
165 | for _, list := range lists { | 165 | for _, list := range lists { |
@@ -200,7 +200,7 @@ func (m *Module) ProvideDashboardData(user *charakterin.User) []grilist.Dashboar | |||
200 | 200 | ||
201 | categories = append(categories, grilist.DashboardCategory{ | 201 | categories = append(categories, grilist.DashboardCategory{ |
202 | Title: "Neueste Listen", | 202 | Title: "Neueste Listen", |
203 | Cards: listsToCards(lists), | 203 | Cards: ListsToCards(lists), |
204 | }) | 204 | }) |
205 | 205 | ||
206 | if user == nil { | 206 | if user == nil { |
@@ -216,7 +216,7 @@ func (m *Module) ProvideDashboardData(user *charakterin.User) []grilist.Dashboar | |||
216 | 216 | ||
217 | categories = append(categories, grilist.DashboardCategory{ | 217 | categories = append(categories, grilist.DashboardCategory{ |
218 | Title: "Meine Listen", | 218 | Title: "Meine Listen", |
219 | Cards: listsToCards(lists), | 219 | Cards: ListsToCards(lists), |
220 | }) | 220 | }) |
221 | 221 | ||
222 | return categories | 222 | return categories |