Merge pull request #452 from okriuchykhin/ok_SCI_949

Fix error when referencing deleted sample in SA [SCI-949]
This commit is contained in:
okriuchykhin 2017-01-25 17:26:48 +01:00 committed by GitHub
commit 6610c75bfc

View file

@ -77,7 +77,7 @@ module ApplicationHelper
if project.archived?
"<span class='sa-type'>#{sanitize(match[2])}</span> " \
"#{link_to project.name,
projects_archive_path} #{t'atwho.res.archived'}"
projects_archive_path} #{I18n.t('atwho.res.archived')}"
else
"<span class='sa-type'>#{sanitize(match[2])}</span> " \
"#{link_to project.name,
@ -90,7 +90,7 @@ module ApplicationHelper
"<span class='sa-type'>#{sanitize(match[2])}</span> " \
"#{link_to experiment.name,
experiment_archive_project_path(experiment.project)} " \
"#{t'atwho.res.archived'}"
"#{I18n.t('atwho.res.archived')}"
else
"<span class='sa-type'>#{sanitize(match[2])}</span> " \
"#{link_to experiment.name,
@ -103,7 +103,7 @@ module ApplicationHelper
"<span class='sa-type'>#{sanitize(match[2])}</span> " \
"#{link_to my_module.name,
module_archive_experiment_path(my_module.experiment)} " \
"#{t'atwho.res.archived'}"
"#{I18n.t('atwho.res.archived')}"
else
"<span class='sa-type'>#{sanitize(match[2])}</span> " \
"#{link_to my_module.name,
@ -118,7 +118,7 @@ module ApplicationHelper
class: 'sample-info-link')}"
else
"<span class='glyphicon glyphicon-tint'></span> " \
"#{match[1]} #{t'atwho.res.deleted'}"
"#{match[1]} #{I18n.t('atwho.res.deleted')}"
end
end
end