file title translations fixed

This commit is contained in:
harrybomrah authored and saurabhbhatia committed 2013-08-30 10:57:54 +08:00
1 parent 2bc9d3424a
commit ff64fb5230
10 files changed
+20 -20

No files matched your search

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