]> git.openstreetmap.org Git - rails.git/commit
Traces: Migrate pagination to bootstrap
authorTobias Jordans <t@tobiasjordans.de>
Sat, 2 Jan 2021 21:48:25 +0000 (22:48 +0100)
committerTobias Jordans <t@tobiasjordans.de>
Sun, 3 Jan 2021 19:55:50 +0000 (20:55 +0100)
commit18ec2730389a92a74fd3fd6d85c22c7403fdbf74
treec991981148b85b28f4c06e3729c2e35699b5d490
parent430872ad7baa2f8276c1594a46e7b78957c3b35c
Traces: Migrate pagination to bootstrap

Same feature, different style.
- Change pagination to use bootstrap default styles
- … but with empty span-tags instead of non-active a-tags
- refactor partial to not use @-variables but get the variables via
the render-call, simplify render-call-syntax
- remove the additional `if @traces.size > 1` inside the pagination
partial since that caused the pagination to disappear on the last page.
The partial will be visible with inactive links.
- Add bootstrap spacer-classes to overwrite commons-css so removing. Eg.
commons also has a pagination class same as bootstrap.
app/views/traces/_trace_paging_nav.html.erb
app/views/traces/index.html.erb