+<% content_for :head do -%>
+ <%= javascript_include_tag "changeset" %>
+<% end -%>
+
<h1><%= @heading %></h1>
-<p><%= @description %></p>
+<p><%= raw(@description) %></p>
-<%= render :partial => 'map' %>
-<%= render :partial => 'changeset_paging_nav' %>
-<%= render :partial => 'changesets', :locals => { :showusername => !params.has_key?(:display_name) } %>
-<%= render :partial => 'changeset_paging_nav' %>
+<% if @edits.size > 0 %>
+ <%= render :partial => 'changeset_paging_nav' %>
-<%= atom_link_to params.merge({ :page => nil, :format => :atom }) %>
+ <div id="changeset_list_container">
+ <%= render :partial => 'map' %>
+ <%= render :partial => 'changesets', :locals => { :showusername => !params.has_key?(:display_name) } %>
+ </div>
-<% content_for :head do %>
-<%= auto_discovery_link_tag :atom, params.merge({ :page => nil, :format => :atom }) %>
+ <%= render :partial => 'changeset_paging_nav' %>
+<% elsif @user and @user.display_name == params[:display_name] %>
+ <p><%= t('changeset.list.empty_user_html') %></p>
+<% else %>
+ <p><%= t('changeset.list.empty_anon_html') %></p>
<% end %>
+
+<% unless params[:friends] or params[:nearby] -%>
+<%= atom_link_to params.merge({ :page => nil, :action => :feed }) %>
+
+<% content_for :head do -%>
+<%= auto_discovery_link_tag :atom, params.merge({ :page => nil, :action => :feed }) %>
+<% end -%>
+<% end -%>