1 <div id="browse_map" class='clearfix content_map'>
 
   2   <% if map.instance_of? Changeset or (map.instance_of? Node and map.version > 1) or map.visible? %>
 
   4   <% content_for :head do %>
 
   5     <%= javascript_include_tag "browse" %>
 
   9      if map.instance_of? Changeset
 
  10        bbox = map.bbox.to_unscaled
 
  14          :minlon => bbox.min_lon,
 
  15          :minlat => bbox.min_lat,
 
  16          :maxlon => bbox.max_lon,
 
  17          :maxlat => bbox.max_lat
 
  19      elsif map.instance_of? Note
 
  28          :type    => map.class.name.downcase,
 
  30          :version => map.version,
 
  31          :visible => map.visible
 
  35   <%= content_tag "div", "", :id => "small_map", :data => data %>
 
  36   <span id="loading"><%= t 'browse.map.loading' %></span>
 
  38 <ul class='secondary-actions clearfix'>
 
  40     <% if map.instance_of? Note -%>
 
  41       <%= link_to t("browse.map.larger.area"),
 
  42                   root_path(:notes => "yes"),
 
  43                   :id => "area_larger_map",
 
  44                   :class => "geolink bbox" %>
 
  46       <%= link_to t("browse.map.larger.area"),
 
  47                   root_path(:box => "yes"),
 
  48                   :id => "area_larger_map",
 
  49                   :class => "geolink bbox" %>
 
  53     <%= link_to h(t("browse.map.edit.area")) + content_tag(:span, "▼", :class => "menuicon"),
 
  56                 :data => { :editor => preferred_editor },
 
  57                 :class => "geolink bbox" %>
 
  61   <% unless map.instance_of? Changeset %>
 
  62   <ul class='secondary-actions clearfix'>
 
  64       <%= link_to t("browse.map.larger." + map.class.to_s.downcase),
 
  66                   :id => "object_larger_map",
 
  67                   :class => "geolink object" %>
 
  70       <%= link_to h(t("browse.map.edit." + map.class.to_s.downcase)) + content_tag(:span, "▼", :class => "menuicon"),
 
  73                   :data => { :editor => preferred_editor },
 
  74                   :class => "geolink object" %>
 
  80     <%= t 'browse.map.deleted' %>
 
  84 <div id="area_edit_menu" class="menu">
 
  86     <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
 
  87       <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
 
  88                       edit_path(:editor => editor),
 
  89                       :data => {:editor => editor},
 
  90                       :class => "geolink bbox" %></li>
 
  95 <div id="object_edit_menu" class="menu">
 
  97     <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
 
  98       <li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
 
  99                       edit_path(:editor => editor),
 
 100                       :data => {:editor => editor},
 
 101                       :class => "geolink object" %></li>