Merge pull request #2707 from aignatov-bio/ai-sci-4839-fix-smart-annotation-name-on-archived-items

Fix smart annotation for archived items [SCI-4839]
This commit is contained in:
aignatov-bio 2020-07-08 09:30:54 +02:00 committed by GitHub
commit b85985afc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ module SmartAnnotations
if object
repository_name = fetch_repository_name(object)
link = if object.archived?
"#{repository_name} #{I18n.t('atwho.res.archived')}"
"#{object.name} #{I18n.t('atwho.res.archived')}"
else
"<a href='#{ROUTES.repository_repository_row_path(object.repository, object)}' " \
"class='record-info-link'>#{object.name}</a>"