From: Tobias Jordans Date: Wed, 30 Dec 2020 13:20:13 +0000 (+0100) Subject: Diary entries #index: Migrate to bootstrap pagination X-Git-Tag: live~1887^2~2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/abc83298cdc9f63a1956ee5a7d30f75b7c7dec07 Diary entries #index: Migrate to bootstrap pagination Use https://getbootstrap.com/docs/4.5/components/pagination/ for the pagination. I tried using link_to_if but this does not work well in this case since multiple changes need to happen for the disabled state. --- diff --git a/app/views/diary_entries/index.html.erb b/app/views/diary_entries/index.html.erb index 96c052da6..28cb69b24 100644 --- a/app/views/diary_entries/index.html.erb +++ b/app/views/diary_entries/index.html.erb @@ -28,21 +28,29 @@ <%= render @entries %> - + <% end %> <% unless params[:friends] or params[:nearby] -%>