openstreetmap-website/app/views/changesets/history.html.erb
Andy Allan c8f0a81eb7 Rework sidebar to use padding on the sidebar_content div
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).
2021-06-16 15:45:58 +01:00

18 lines
689 B
Text

<% content_for :auto_discovery_link_tag do -%>
<% unless params[:friends] or params[:nearby] -%>
<%= auto_discovery_link_tag :atom, @params.to_h.merge(:max_id => nil, :xhr => nil, :action => :feed) %>
<% end -%>
<% end -%>
<% set_title(changeset_index_title(params, current_user))
@heading = if params[:display_name]
t("changesets.index.title_user", :user => link_to(params[:display_name], user_path(:display_name => params[:display_name]))).html_safe
else
@title
end %>
<%= render "sidebar_header", :title => @heading %>
<div class="changesets mx-n3">
<%= image_tag "searching.gif", :class => "loader" %>
</div>