Commit 16c36447d060e76b7ece1656f1f889d53968dc3e
1 parent
b9ef2ea7
Exists in
master
and in
29 other branches
[search-improvements] Rename assets_links to assets_menu
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/helpers/search_helper.rb
@@ -117,7 +117,7 @@ module SearchHelper | @@ -117,7 +117,7 @@ module SearchHelper | ||
117 | end.join("\n"), :id => 'search-filters') | 117 | end.join("\n"), :id => 'search-filters') |
118 | end | 118 | end |
119 | 119 | ||
120 | - def assets_links(selected) | 120 | + def assets_menu(selected) |
121 | assets = SEARCHES.keys | 121 | assets = SEARCHES.keys |
122 | content_tag('ul', | 122 | content_tag('ul', |
123 | assets.map do |asset| | 123 | assets.map do |asset| |
app/views/search/_search_form.html.erb
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, | 3 | <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, |
4 | :method => 'get', :class => 'search_form' ) do %> | 4 | :method => 'get', :class => 'search_form' ) do %> |
5 | <div id='search-header'> | 5 | <div id='search-header'> |
6 | - <%= assets_links(@asset) %> | 6 | + <%= assets_menu(@asset) %> |
7 | <%= filters(@asset) %> | 7 | <%= filters(@asset) %> |
8 | </div> | 8 | </div> |
9 | 9 |