From 4f04eca74f33df277db5fb56002c3ad8a2b55c08 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 14 Oct 2013 16:09:10 +0800 Subject: [PATCH] test for fileview in desktop on server --- .../panel/personal_journal/desktop/journal_pages_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/built_in_modules/personal_journal/app/helpers/panel/personal_journal/desktop/journal_pages_helper.rb b/vendor/built_in_modules/personal_journal/app/helpers/panel/personal_journal/desktop/journal_pages_helper.rb index b7915faf..89c82dbd 100644 --- a/vendor/built_in_modules/personal_journal/app/helpers/panel/personal_journal/desktop/journal_pages_helper.rb +++ b/vendor/built_in_modules/personal_journal/app/helpers/panel/personal_journal/desktop/journal_pages_helper.rb @@ -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