This saves every header, list, paragraph etc having to sort out their own padding. The couple of instances where we want edge-to-edge can be acheived using the negative margin spacing utilities. The padding is based on $spacer so that it can be adjusted automatically via bootstrap configuration. This also means that we can remove many (mis-)uses of the browse-section class, which is only supposed to be for cases where there are multiple browse-sections in sequence (e.g. multiple nodes in the node history browse pages).
17 lines
688 B
Text
17 lines
688 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="loader"><%= image_tag "searching.gif" %></div>
|
|
</div>
|
|
<% end -%>
|
|
<% elsif params[:bbox] %>
|
|
<p><%= t(params[:max_id] ? ".no_more_area" : ".empty_area") %></p>
|
|
<% elsif params[:display_name] %>
|
|
<p><%= t(params[:max_id] ? ".no_more_user" : ".empty_user") %></p>
|
|
<% else %>
|
|
<p><%= t(params[:max_id] ? ".no_more" : ".empty") %></p>
|
|
<% end %>
|