Inline key partial used only on index

This commit is contained in:
John Firebaugh 2012-09-29 14:25:33 -07:00 committed by Tom Hughes
parent 87e8cf3b58
commit d62e8c43f3
3 changed files with 4 additions and 5 deletions

View file

@ -1,3 +0,0 @@
<% content_for :left_menu do %>
<li><%= link_to t("site.key.map_key"), {:action => :key}, :id => "open_map_key", :title => t("site.key.map_key_tooltip") %></li>
<% end %>

View file

@ -8,9 +8,12 @@
<% end -%>
<% end -%>
<% content_for :left_menu do %>
<li><%= link_to t("site.key.map_key"), {:action => :key}, :id => "open_map_key", :title => t("site.key.map_key_tooltip") %></li>
<% end %>
<%= render :partial => 'home_link' %>
<%= render :partial => 'sidebar' %>
<%= render :partial => 'key' %>
<%= render :partial => 'search' %>
<noscript>

View file

@ -86,7 +86,6 @@ class SiteControllerTest < ActionController::TestCase
def assert_site_partials(count = 1)
assert_template :partial => '_search', :count => count
assert_template :partial => '_key', :count => count
assert_template :partial => '_sidebar', :count => count
end