test for fileview in desktop on server
This commit is contained in:
parent
4120be6f8e
commit
4f04eca74f
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue