Don't show "Browse Map Data" when we're not on the map view

This commit is contained in:
Tom Hughes 2012-04-12 15:49:41 +01:00
parent 5fabab8b08
commit ababece2cc
2 changed files with 7 additions and 3 deletions

View file

@ -51,9 +51,7 @@
<% Editors::ALL_EDITORS.each do |editor| %>
<li><%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")), {:controller => 'site', :action => 'edit', :editor => editor}, {:id => editor + 'anchor', :class => "geolink llz object"} %></li>
<% end %>
<% unless STATUS == :api_offline or STATUS == :database_offline %>
<li><%= link_to_function(t('browse.start_rjs.data_layer_name'), 'showData()') %></li>
<% end %>
<%= yield :editmenu %>
</ul>
</div>

View file

@ -4,6 +4,12 @@
<% end %>
<% end %>
<% unless STATUS == :api_offline or STATUS == :database_offline -%>
<% content_for :editmenu do -%>
<li><%= link_to_function(t('browse.start_rjs.data_layer_name'), 'showData()') %></li>
<% end -%>
<% end -%>
<%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %>
<%= render :partial => 'key' %>
<%= render :partial => 'search' %>