]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_paging_nav.html.erb
Merge remote-tracking branch 'upstream/pull/4262'
[rails.git] / app / views / browse / _paging_nav.html.erb
index 67f1c75a3bc3a21303c9e184e45de389fab1a956..e13b1a9b85e84abe2e3efcf27e2ad9dfd93a4e26 100644 (file)
@@ -1,5 +1,14 @@
-<% if pages.page_count > 1 %>
-  <span class="paginate">
-    <%= raw pagination_links_each(pages, {}) { |n| link_to(n, page_param => n) } %>
-  </span>
-<% end %>
+<div class="row">
+  <div class="col">
+    <h4><%= heading %></h4>
+  </div>
+  <% if pages.page_count > 1 %>
+    <div class="col-auto">
+      <h4>
+        <span class="border border-lightgrey rounded p-1">
+          <%= raw pagination_links_each(pages, {}) { |n| link_to(n, page_param => n) } %>
+        </span>
+      </h4>
+    </div>
+  <% end %>
+</div>