file title translations fixed
This commit is contained in:
1 parent
2bc9d3424a
commit
ff64fb5230
10 files changed
+20
-20
No files matched your search
+2
-2
@@ -65,11 +65,11 @@ module Panel::PersonalProject::Desktop::PersonalProjectsHelper
|
||||
def link_publication_file publication
|
||||
publication.project_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
|
||||
|
||||
|
||||
Reference in new issue
Block a user