]> git.openstreetmap.org Git - rails.git/blob - app/views/changeset/history.html.erb
Make sure the query location is always in view
[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    if params[:friends] and @user
9      set_title(t 'changeset.list.title_friend')
10      @heading = t 'changeset.list.title_friend'
11    elsif params[:nearby] and @user
12      set_title(t 'changeset.list.title_nearby')
13      @heading = t 'changeset.list.title_nearby'
14    elsif params[:display_name]
15      set_title(t 'changeset.list.title_user', :user => params[:display_name])
16      @heading = t('changeset.list.title_user', :user => link_to(params[:display_name], :controller => "user", :action => "view", :display_name => params[:display_name])).html_safe
17    else
18      set_title(t 'changeset.list.title')
19      @heading = t 'changeset.list.title'
20    end
21 %>
22
23 <h2>
24   <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
25   <%= @heading %>
26 </h2>
27
28 <div class="changesets">
29   <%= image_tag "searching.gif", :class => "loader" %>
30 </div>