]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_comments/_page.html.erb
Pass translation scope instead of keys to shared pagination
[rails.git] / app / views / diary_comments / _page.html.erb
index 66e40cd805733223825fc3bd731cd4ac297bb481..20663a176e7f1512a86dc897fe0e8fa34d95727b 100644 (file)
@@ -19,8 +19,7 @@
   </table>
 
   <%= render "shared/pagination",
   </table>
 
   <%= render "shared/pagination",
-             :newer_key => "diary_comments.page.newer_comments",
-             :older_key => "diary_comments.page.older_comments",
+             :translation_scope => "shared.pagination.diary_comments",
              :newer_id => @newer_comments_id,
              :older_id => @older_comments_id %>
 </turbo-frame>
              :newer_id => @newer_comments_id,
              :older_id => @older_comments_id %>
 </turbo-frame>