]> 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 e1ce3fe48604a897b201f1beeb40837ad9a8b982..cb9716fc9fb2c932b4f4e90dbe0b089cf58568f4 100644 (file)
@@ -1,7 +1,6 @@
 <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>