test for fileview in desktop on server

This commit is contained in:
Harry Bomrah 2013-10-14 16:09:10 +08:00 committed by saurabhbhatia
parent 4120be6f8e
commit 4f04eca74f
1 changed files with 2 additions and 2 deletions

View File

@ -89,11 +89,11 @@ module Panel::PersonalJournal::Desktop::JournalPagesHelper
def link_publication_file publication
publication.writing_journal_files.map{|file|
link_to(image_tag(check_file_type(file.file.url)) + \
content_tag(:span, file.title_translations[I18n.locale.to_s], :class => "filetitle"),
content_tag(:span, file.title[I18n.locale.to_s], :class => "filetitle"),
file.file.url,
:class => "file",
"target" => "_blank",
"title" => file.title_translations[I18n.locale.to_s])
"title" => file.title[I18n.locale.to_s])
}.inject(:+)
end