Commit fc273ce5dc93f66e3580613840a5f7afc62ece2f
1 parent
1dfdc8fe
Exists in
temp_soft_comm_refactoring
Change blocks references to search controller
Showing
3 changed files
with
5 additions
and
5 deletions
Show diff stats
src/noosfero-spb/software_communities/views/blocks/categories_software.html.erb
@@ -10,13 +10,13 @@ | @@ -10,13 +10,13 @@ | ||
10 | 10 | ||
11 | <% categories.each do |category| %> | 11 | <% categories.each do |category| %> |
12 | <% unless category.software_infos.count < 1 %> | 12 | <% unless category.software_infos.count < 1 %> |
13 | - <li><%= link_to _("#{category.name}") + " (#{category.software_infos.count})", {:controller => :search, :action => :software_infos, :selected_categories_id => [category.id]} %></li> | 13 | + <li><%= link_to _("#{category.name}") + " (#{category.software_infos.count})", {:controller => :search, :action => :softwares, :selected_categories_id => [category.id]} %></li> |
14 | <% end %> | 14 | <% end %> |
15 | <% end %> | 15 | <% end %> |
16 | </ul> | 16 | </ul> |
17 | </div> | 17 | </div> |
18 | 18 | ||
19 | <div id="footer-mais-software"> | 19 | <div id="footer-mais-software"> |
20 | - <%= link_to _("Access the complete catalog"), {controller: "search", action: "software_infos"}%> | 20 | + <%= link_to _("Access the complete catalog"), {controller: "search", action: "softwares"}%> |
21 | </div> | 21 | </div> |
22 | </div> | 22 | </div> |
src/noosfero-spb/software_communities/views/blocks/search_catalog.html.erb
1 | <div id="catalogo-software-search"> | 1 | <div id="catalogo-software-search"> |
2 | <h1><%= _("Catalog of Software") %></h1> | 2 | <h1><%= _("Catalog of Software") %></h1> |
3 | - <%= form_tag(controller: "search", action: "software_infos", method: "get") do %> | 3 | + <%= form_tag(controller: "search", action: "softwares", method: "get") do %> |
4 | <%= text_field_tag(:query, nil, :placeholder => "e.g: cacic, e-cidade, gsan, etc", :class=>"searchField", :id=>"search-Gadget") %> | 4 | <%= text_field_tag(:query, nil, :placeholder => "e.g: cacic, e-cidade, gsan, etc", :class=>"searchField", :id=>"search-Gadget") %> |
5 | <%= submit_tag(_("Search"), {:class=>"searchButton-catalog"})%> | 5 | <%= submit_tag(_("Search"), {:class=>"searchButton-catalog"})%> |
6 | <% end %> | 6 | <% end %> |
7 | 7 | ||
8 | <div id="search-catalog-footer"> | 8 | <div id="search-catalog-footer"> |
9 | - <p><%= link_to _("Access the complete catalog"), {controller: "search", action: "software_infos"} , {:id => "bt_catalog-search"}%></p> | 9 | + <p><%= link_to _("Access the complete catalog"), {controller: "search", action: "softwares"} , {:id => "bt_catalog-search"}%></p> |
10 | </div> | 10 | </div> |
11 | </div> | 11 | </div> |
src/noosfero-spb/software_communities/views/blocks/software_highlights.html.erb
@@ -15,6 +15,6 @@ | @@ -15,6 +15,6 @@ | ||
15 | </p> | 15 | </p> |
16 | </div> | 16 | </div> |
17 | <div class="see-all"> | 17 | <div class="see-all"> |
18 | - <%= link_to _('See all'), {:controller => :search, :action => :software_infos, :only_softwares => softwares} %> | 18 | + <%= link_to _('See all'), {:controller => :search, :action => :softwares, :only_softwares => softwares} %> |
19 | </div> | 19 | </div> |
20 | </div> | 20 | </div> |