diff --git a/lib/redmine_dmsf/hooks/helpers/search_helper_hooks.rb b/lib/redmine_dmsf/hooks/helpers/search_helper_hooks.rb index d38f859c..ce9bec5e 100644 --- a/lib/redmine_dmsf/hooks/helpers/search_helper_hooks.rb +++ b/lib/redmine_dmsf/hooks/helpers/search_helper_hooks.rb @@ -30,7 +30,16 @@ module RedmineDmsf str = context[:controller].send(:render_to_string, :partial => 'search/container', :locals => { :object => context[:entity] }) if str - context[:additional_result] << str + html = '

' + if context[:entity].dmsf_folder_id + html << context[:entity].class.human_attribute_name(:folder) + else + html << context[:entity].class.human_attribute_name(:project) + end + html << ':' + html << str + html << '

' + context[:additional_result] << html end end end