file title translations fixed
This commit is contained in:
parent
2bc9d3424a
commit
ff64fb5230
|
@ -65,11 +65,11 @@ module Panel::PersonalBook::Desktop::PersonalBooksHelper
|
|||
def link_publication_file publication
|
||||
publication.writing_book_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
|
||||
|
||||
|
|
|
@ -65,11 +65,11 @@ module Panel::PersonalConference::Desktop::ConferencePagesHelper
|
|||
def link_publication_file publication
|
||||
publication.writing_conference_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
|
||||
|
||||
|
|
|
@ -65,11 +65,11 @@ module Panel::PersonalDiploma::Desktop::PersonalDiplomasHelper
|
|||
def link_publication_file publication
|
||||
publication.writing_conference_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
|
||||
|
||||
|
|
|
@ -65,11 +65,11 @@ module Panel::PersonalExperience::Desktop::PersonalExperiencesHelper
|
|||
def link_publication_file publication
|
||||
publication.writing_conference_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
|
||||
|
||||
|
|
|
@ -58,11 +58,11 @@ module Panel::PersonalHonor::Desktop::PersonalHonorsHelper
|
|||
def link_publication_file publication
|
||||
publication.writing_book_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
|
||||
|
||||
|
|
|
@ -66,11 +66,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.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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -65,11 +65,11 @@ module Panel::PersonalPatent::Desktop::PersonalPatentsHelper
|
|||
def link_publication_file publication
|
||||
publication.writing_patent_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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -65,11 +65,11 @@ module Panel::PersonalResearch::Desktop::PersonalResearchsHelper
|
|||
def link_publication_file publication
|
||||
publication.research_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
|
||||
|
||||
|
|
Loading…
Reference in New Issue