From 2e41c354794b183f24e5c5745f8e408ad9a69bc8 Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Mon, 8 Dec 2008 15:30:19 +0000 Subject: [PATCH] Adding the ability to see the min/max lat/lon for a changeset in the data browser. Adding file for the nice message that should show when a user is missing in the message controller. --- app/views/browse/_changeset_details.rhtml | 19 +++++++++++++++++++ app/views/message/no_such_user.rhtml | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 app/views/message/no_such_user.rhtml diff --git a/app/views/browse/_changeset_details.rhtml b/app/views/browse/_changeset_details.rhtml index 765fe4778..2b711611b 100644 --- a/app/views/browse/_changeset_details.rhtml +++ b/app/views/browse/_changeset_details.rhtml @@ -33,6 +33,25 @@ <% end %> + <% if changeset_details.max_lat.nil? or changeset_details.min_lat.nil? or changeset_details.max_lon.nil? or changeset_details.min_lon.nil? %> + + No bounding box has been stored for this changeset. + + <% else %> + + + + + + + + + + + +
Max Latitude: <%= changeset_details.max_lat/GeoRecord::SCALE.to_f -%>
Min Longitude: <%= changeset_details.min_lon/GeoRecord::SCALE.to_f -%>Max Longitude: <%= changeset_details.max_lon/GeoRecord::SCALE.to_f -%>
Min Latitude: <%= changeset_details.min_lon/GeoRecord::SCALE.to_f -%>
+ <% end %> + <% unless @nodes.empty? %> Has the following <%= @node_pages.item_count %> nodes: diff --git a/app/views/message/no_such_user.rhtml b/app/views/message/no_such_user.rhtml new file mode 100644 index 000000000..c18733af6 --- /dev/null +++ b/app/views/message/no_such_user.rhtml @@ -0,0 +1,2 @@ +

No such user or message

+

Sorry there is no user or message with that name or id

-- 2.43.2