From 8b5c1d9ff26e4624c20280a4278bdd37f830aa60 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sat, 24 Aug 2013 22:42:42 +0200 Subject: [PATCH] Moved pagination to top bar. Removed "prev", "next", "first" and "last" from kaminari paginator. --- app/assets/stylesheets/my.css.scss | 13 +++++++++++++ app/views/packages/index.html.erb | 10 ++++++---- config/locales/en.yml | 8 ++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/my.css.scss b/app/assets/stylesheets/my.css.scss index 4a68397..ee0cd2e 100644 --- a/app/assets/stylesheets/my.css.scss +++ b/app/assets/stylesheets/my.css.scss @@ -21,3 +21,16 @@ div.thumbnail { text-align: center; } + +/* Pagination is shown in top bar. Reduce margin to avoid making the nav bar larger. */ +ul.pagination +{ + margin-top: 8px; + margin-bottom: 0; +} + +/* Top bar is fixed. Move main part down so the bar does not hide it. */ +.container-main +{ + margin-top: 60px; +} \ No newline at end of file diff --git a/app/views/packages/index.html.erb b/app/views/packages/index.html.erb index 08db81e..7f7b54c 100644 --- a/app/views/packages/index.html.erb +++ b/app/views/packages/index.html.erb @@ -1,4 +1,4 @@ -