Fixes for pagination on small viewports

https://www.openproject.org/work_packages/15375
Use the new Ruby 1.9 hash syntax.<br>Prefer single-quoted strings when you don't need string interpolation or special symbols.