The parent folder link with a label

This commit is contained in:
Karel Picman 2017-07-12 08:23:22 +02:00
parent 77a6462e5b
commit 07e3dfebbf

View File

@ -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 = '<p class=\"file-detail-container\"><span><strong>'
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 << ':</strong>'
html << str
html << '</span></p>'
context[:additional_result] << html
end
end
end