]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/traces/_page.html.erb
Pass translation scope instead of keys to shared pagination
[rails.git] / app / views / traces / _page.html.erb
index 38cdc734188078e02069a61c113ee652c3331a8d..cb9716fc9fb2c932b4f4e90dbe0b089cf58568f4 100644 (file)
@@ -1,7 +1,6 @@
-<turbo-frame id="pagination" target="_top">
+<turbo-frame id="pagination" target="_top" data-turbo="false">
   <%= render "shared/pagination",
-             :newer_key => "traces.page.newer",
-             :older_key => "traces.page.older",
+             :translation_scope => "shared.pagination.traces",
              :newer_id => @newer_traces_id,
              :older_id => @older_traces_id %>
 
@@ -12,8 +11,7 @@
   </table>
 
   <%= render "shared/pagination",
-             :newer_key => "traces.page.newer",
-             :older_key => "traces.page.older",
+             :translation_scope => "shared.pagination.traces",
              :newer_id => @newer_traces_id,
              :older_id => @older_traces_id %>
 </turbo-frame>