From 9a7db5d63b12f90b944f4ad151e5299d1745ecfb Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 26 Jun 2008 23:01:55 +0000 Subject: [PATCH] Refactor to remove some code duplication. --- app/views/browse/_map.rhtml | 20 +++++++++++++------- app/views/browse/node.rhtml | 8 +------- app/views/browse/node_history.rhtml | 8 +------- app/views/browse/relation.rhtml | 8 +------- app/views/browse/relation_history.rhtml | 8 +------- app/views/browse/way.rhtml | 8 +------- app/views/browse/way_history.rhtml | 8 +------- 7 files changed, 19 insertions(+), 49 deletions(-) diff --git a/app/views/browse/_map.rhtml b/app/views/browse/_map.rhtml index 9ca0a163a..ad2d2d307 100644 --- a/app/views/browse/_map.rhtml +++ b/app/views/browse/_map.rhtml @@ -1,15 +1,21 @@ <%= javascript_include_tag '/openlayers/OpenLayers.js' %> <%= javascript_include_tag '/openlayers/OpenStreetMap.js' %> <%= javascript_include_tag 'map.js' %> -
-
-Loading... - + + <% if map.visible %> +
+
+ Loading... + + <% else %> + Deleted + <% end %> +