X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/45a9d9433767938a9d313f745f9459400132704a..e7147d0d7adae704ead9f4985bcda918e622d833:/app/views/browse/_changeset_details.rhtml diff --git a/app/views/browse/_changeset_details.rhtml b/app/views/browse/_changeset_details.rhtml index d8a911f8a..27335dd88 100644 --- a/app/views/browse/_changeset_details.rhtml +++ b/app/views/browse/_changeset_details.rhtml @@ -1,19 +1,68 @@ - <%= render :partial => "common_details", :object => changeset_details %> + + + + + + <% if changeset_details.user.data_public? %> + + + + + <% end %> + + <% unless changeset_details.tags_as_hash.empty? %> + + + + + <% end %> - <% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %> + <% unless changeset_details.old_nodes.empty? %> + + + + + <% end %> + + <% unless changeset_details.old_ways.empty? %> - + <% end %> + + <% unless changeset_details.old_relations.empty? %> + + + + + <% end %>
Created at:<%= h(changeset_details.created_at) %>
Belongs to:<%= link_to h(changeset_details.user.display_name), :controller => "user", :action => "view", :display_name => changeset_details.user.display_name %>
Tags: + + <%= render :partial => "tag", :collection => changeset_details.tags_as_hash %> +
+
Has the following nodes: + + <% changeset_details.old_nodes.each do |node| %> + + <% end %> +
<%= link_to "Node #{node.id.to_s}, version #{node.version.to_s}", :action => "node", :id => node.id.to_s %>
+
Part of:Has the following ways: - <% node_details.ways.each do |way| %> - + <% changeset_details.old_ways.each do |way| %> + <% end %> - <%= render :partial => "containing_relation", :collection => node_details.containing_relation_members %> + <%= + #render :partial => "containing_relation", :collection => changeset_details.containing_relation_members + %>
<%= link_to "Way " + way.id.to_s, :action => "way", :id => way.id.to_s %>
<%= link_to "Way #{way.id.to_s}, version #{way.version.to_s}", :action => "way", :id => way.id.to_s %>
Has the following relations: + + <% changeset_details.old_relations.each do |relation| %> + + <% end %> +
<%= link_to "Relation #{relation.id.to_s}, version #{relation.version.to_s}", :action => "relation", :id => relation.id.to_s %>
+