]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entries/_page.html.erb
Pass translation scope instead of keys to shared pagination
[rails.git] / app / views / diary_entries / _page.html.erb
index 34f364ac4694a816d04dfd9d96ca21a00fbdde0e..f0a99928fd326a13550526f42ccfbb398decfbce 100644 (file)
@@ -1,11 +1,10 @@
-<turbo-frame id="pagination" target="_top">
+<turbo-frame id="pagination" target="_top" data-turbo="false">
   <h4><%= t ".recent_entries" %></h4>
 
   <%= render @entries %>
 
   <%= render "shared/pagination",
-             :newer_key => "diary_entries.page.newer_entries",
-             :older_key => "diary_entries.page.older_entries",
+             :translation_scope => "shared.pagination.diary_entries",
              :newer_id => @newer_entries_id,
              :older_id => @older_entries_id %>
 </turbo-frame>