Commit 02d3946a57223f56509fdad1a4cc57c224d2e4ec

Authored by MoisesMachado
1 parent e8aff3e4

ActionItem25: added icon to denote product in search and made search return products as well


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1010 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/controllers/public/search_controller.rb
... ... @@ -24,6 +24,10 @@ class SearchController < ApplicationController
24 24 Profile.find_by_contents(query)
25 25 end
26 26  
  27 + search do |query|
  28 + Product.find_by_contents(query)
  29 + end
  30 +
27 31 # auxiliary method to search in all defined searches and collect the results
28 32 def search(query)
29 33 SEARCHES.inject([]) do |acc,finder|
... ...
public/designs/icons/default/README
... ... @@ -16,6 +16,7 @@ gtk-save.png Nuovo stock/
16 16 gtk-go-up.png Nuovo stock/
17 17 gtk-cancel.png Nuovo stock/
18 18 user_icon.png Nuovo apps/
  19 +gnome-other.png Nuovo apps/
19 20  
20 21 Licensing of GNOME themes
21 22 =========================
... ...
public/designs/icons/default/gnome-other.png 0 → 100644

1.12 KB

public/designs/icons/default/style.css
... ... @@ -8,3 +8,4 @@
8 8 .button.up { background-image: url(gtk-go-up.png); }
9 9 .button.cancel { background-image: url(gtk-cancel.png); }
10 10 .button.person { background-image: url(user_icon.png); }
  11 +.button.product { background-image: url(gnome-other.png); }
... ...