]> git.openstreetmap.org Git - rails.git/blob - app/views/changeset/history.html.erb
Use a current_user helper for accessing the logged in user in all views.
[rails.git] / app / views / changeset / history.html.erb
1 <% content_for :auto_discovery_link_tag do -%>
2   <% unless params[:friends] or params[:nearby] -%>
3     <%= auto_discovery_link_tag :atom, @params.merge(:max_id => nil, :xhr => nil, :action => :feed) %>
4   <% end -%>
5 <% end -%>
6
7 <%
8    set_title(changeset_list_title(params, current_user))
9    if params[:display_name]
10      @heading = t('changeset.list.title_user', :user => link_to(params[:display_name], :controller => "user", :action => "view", :display_name => params[:display_name])).html_safe
11    else
12      @heading = @title
13    end
14 %>
15
16 <h2>
17   <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
18   <%= @heading %>
19 </h2>
20
21 <div class="changesets">
22   <%= image_tag "searching.gif", :class => "loader" %>
23 </div>