]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/changesets/history.html.erb
Merge remote-tracking branch 'upstream/pull/3038'
[rails.git] / app / views / changesets / history.html.erb
index 1117f01b3b46229282c09d4545d6ad70896d0355..f9eb01a6d69948d8911dec99cae609ff3b582af2 100644 (file)
@@ -4,19 +4,14 @@
   <% end -%>
 <% end -%>
 
   <% end -%>
 <% end -%>
 
-<%
-   set_title(changeset_index_title(params, current_user))
-   if params[:display_name]
-     @heading = t('changesets.index.title_user', :user => link_to(params[:display_name], user_path(:display_name => params[:display_name]))).html_safe
-   else
-     @heading = @title
-   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 %>
 
 
-<h2>
-  <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
-  <%= @heading %>
-</h2>
+<%= render "sidebar_header", :title => @heading %>
 
 <div class="changesets">
   <%= image_tag "searching.gif", :class => "loader" %>
 
 <div class="changesets">
   <%= image_tag "searching.gif", :class => "loader" %>