Isolate object names from the database with a <bdi> tag

Fixes #743
This commit is contained in:
Tom Hughes 2014-05-18 17:16:36 +01:00
parent 2bdd542d9b
commit 5da273027f
9 changed files with 23 additions and 23 deletions

View file

@ -14,13 +14,13 @@ module BrowseHelper
# away redacted version tag information.
unless object.redacted?
if object.tags.include? "name:#{I18n.locale}"
name = t 'printable_name.with_name', :name => object.tags["name:#{I18n.locale}"].to_s, :id => name
name = t 'printable_name.with_name_html', :name => content_tag(:bdi, object.tags["name:#{I18n.locale}"].to_s ), :id => name
elsif object.tags.include? 'name'
name = t 'printable_name.with_name', :name => object.tags['name'].to_s, :id => name
name = t 'printable_name.with_name_html', :name => content_tag(:bdi, object.tags['name'].to_s ), :id => name
end
end
return name
name
end
def link_class(type, object)