kaminari bootstrap
This commit is contained in:
parent
0ebd341780
commit
2bf1a0f263
1
Gemfile
1
Gemfile
|
|
@ -32,6 +32,7 @@ gem 'redis', '~> 4.0'
|
|||
# Use ActiveStorage variant
|
||||
gem 'mini_magick', '~> 4.8'
|
||||
gem 'kaminari', '~> 1.1.1'
|
||||
gem 'bootstrap4-kaminari-views'
|
||||
# Use Capistrano for deployment
|
||||
# gem 'capistrano-rails', group: :development
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,9 @@ GEM
|
|||
bindex (0.7.0)
|
||||
bootsnap (1.4.3)
|
||||
msgpack (~> 1.0)
|
||||
bootstrap4-kaminari-views (1.0.1)
|
||||
kaminari (>= 0.13)
|
||||
rails (>= 3.1)
|
||||
builder (3.2.3)
|
||||
byebug (11.0.1)
|
||||
capybara (3.16.2)
|
||||
|
|
@ -223,6 +226,7 @@ PLATFORMS
|
|||
|
||||
DEPENDENCIES
|
||||
bootsnap (>= 1.1.0)
|
||||
bootstrap4-kaminari-views
|
||||
byebug
|
||||
capybara (>= 2.15)
|
||||
chromedriver-helper
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ module Admin
|
|||
end
|
||||
|
||||
def collection
|
||||
@courses = Course.name_asc
|
||||
@courses = Course.name_asc.page(params[:page])
|
||||
end
|
||||
|
||||
# Never trust parameters from the scary internet, only allow the white list through.
|
||||
|
|
|
|||
|
|
@ -22,4 +22,5 @@
|
|||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<%= paginate @courses, theme: 'twitter-bootstrap-4', pagination_class: 'justify-content-center' %>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Reference in New Issue