]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_map.html.erb
Rework notes interface using OpenLayers and rails
[rails.git] / app / views / browse / _map.html.erb
index 9ff93b365fba258ff3acf1f13996eb8d57039d75..2d04efe04fe6d068698bfb196d78bbb4442db485 100644 (file)
   <div id="small_map">
   </div>
   <span id="loading"><%= t 'browse.map.loading' %></span>
+  <% if map.instance_of? Note -%>
+  <%= link_to(t("browse.map.larger.area"), { :controller => :site, :action => :index, :notes => "yes" }, { :id => "area_larger_map", :class => "geolink bbox" }) %>
+  <% else -%>
   <%= link_to(t("browse.map.larger.area"), { :controller => :site, :action => :index, :box => "yes" }, { :id => "area_larger_map", :class => "geolink bbox" }) %>
+  <% end -%>
   <br />
   <%= link_to(t("browse.map.edit.area"), { :controller => :site, :action => :edit }, { :id => "area_edit", :class => "geolink bbox" }) %>
   <% unless map.instance_of? Changeset or map.instance_of? Note %>