comparison app/helpers/.svn/text-base/search_helper.rb.svn-base @ 37:94944d00e43c

* Update to SVN trunk rev 4411
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 19 Nov 2010 13:24:41 +0000
parents 513646585e45
children 0c939c159af4
comparison
equal deleted inserted replaced
22:40f7cfd4df19 37:94944d00e43c
37 end 37 end
38 result 38 result
39 end 39 end
40 40
41 def type_label(t) 41 def type_label(t)
42 l("label_#{t.singularize}_plural") 42 l("label_#{t.singularize}_plural", :default => t.to_s.humanize)
43 end 43 end
44 44
45 def project_select_tag 45 def project_select_tag
46 options = [[l(:label_project_all), 'all']] 46 options = [[l(:label_project_all), 'all']]
47 options << [l(:label_my_projects), 'my_projects'] unless User.current.memberships.empty? 47 options << [l(:label_my_projects), 'my_projects'] unless User.current.memberships.empty?