openstreetmap-website/app/views/changesets/index.html.erb
Andy Allan b7ad61560c Fix lack of margin on changeset browsing messages
The display area here uses negative margins to make the flush list
work, so we need to add them back in for normal text.
2023-09-06 16:51:25 +01:00

21 lines
856 B
Text

<% if @changesets.present? %>
<ol class="changesets list-group list-group-flush">
<%= render @changesets %>
</ol>
<% if @changesets.size == 20 -%>
<div class="changeset_more mt-3 text-center">
<%= link_to t(".load_more"), url_for(@params.merge(:max_id => @changesets.last.id - 1)), :class => "btn btn-primary" %>
<div class="text-center loader">
<div class="spinner-border" role="status">
<span class="visually-hidden"><%= t("browse.start_rjs.loading") %></span>
</div>
</div>
</div>
<% end -%>
<% elsif params[:bbox] %>
<p class="mx-3"><%= t(params[:max_id] ? ".no_more_area" : ".empty_area") %></p>
<% elsif params[:display_name] %>
<p class="mx-3"><%= t(params[:max_id] ? ".no_more_user" : ".empty_user") %></p>
<% else %>
<p class="mx-3"><%= t(params[:max_id] ? ".no_more" : ".empty") %></p>
<% end %>