app/views/navigation.rhtml in instiki-0.10.1 vs app/views/navigation.rhtml in instiki-0.10.2

- old
+ new

@@ -6,12 +6,14 @@ content_tag('b', text, 'title' => description, 'class' => 'navOn') } 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 %> <%= list_item 'Home Page', {:action => 'show', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> | <%= list_item 'All Pages', {:action => 'list'}, 'Alphabetically sorted list of pages', 'A' %> | <%= list_item 'Recently Revised', {:action =>'recently_revised'}, 'Pages sorted by when they were last changed', 'U' @@ -25,6 +27,6 @@ onfocus="if (this.value == 'Search' ) this.value = '' " /> <% else %> <%= list_item 'Home Page', {:action => 'published', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> | <% end%> -</form> +<%= end_form_tag %>