Fixed a hard-coded link to :web/search, ticket:149

This commit is contained in:
Alexey Verkhovsky 2005-05-05 06:13:33 +00:00
parent 389242747e
commit 9b6c391062

View file

@ -8,7 +8,9 @@ def list_item(text, link_options, description, accesskey = nil)
end end
%> %>
<form id="navigationForm" class="navigation" action="../search/" method="get" style="font-size: 10px"> <%= form_tag({ :controller => 'wiki', :action => 'search', :web => @web.address},
{'id' => 'navigationForm', 'class' => 'navigation', 'method' => 'get'})
%>
<% if @action_name != 'published' then %> <% if @action_name != 'published' then %>
<%= list_item 'Home Page', {:action => 'show', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> | <%= list_item 'Home Page', {:action => 'show', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> |
@ -27,4 +29,4 @@ end
<%= list_item 'Home Page', {:action => 'published', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> | <%= list_item 'Home Page', {:action => 'published', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> |
<% end%> <% end%>
</form> <%= end_form_tag %>