diff options
author | jan <jan@ruken.pw> | 2015-12-30 08:27:55 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2015-12-30 08:27:55 (UTC) |
commit | 9ab495abeec5e316adc2da4ac1afbd16d35826df (patch) | |
tree | 96f190a903b2365321db560821165fa1f78b47eb /modules | |
parent | 10f014d5da7f1a35d2fc6cf0aa617a5ec4bb074f (diff) |
krasse paginationberechnung (patent pending)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tags/tags.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/tags/tags.go b/modules/tags/tags.go index 527d1d9..650fa4e 100644 --- a/modules/tags/tags.go +++ b/modules/tags/tags.go | |||
@@ -122,7 +122,6 @@ func (m *Module) viewTagPage(w http.ResponseWriter, r *http.Request, p httproute | |||
122 | data["user"] = user | 122 | data["user"] = user |
123 | data["tag"] = tag | 123 | data["tag"] = tag |
124 | data["cards"] = cards | 124 | data["cards"] = cards |
125 | data["currentPage"] = pageNumber | 125 | data["pagination"] = frontend.PaginationFromPage(3, pageNumber, pageCount) |
126 | data["pageCount"] = pageCount | ||
127 | m.g.Renderer.RenderPage("tag", w, data) | 126 | m.g.Renderer.RenderPage("tag", w, data) |
128 | } | 127 | } |