lib/curation_concerns/messages.rb in curation_concerns-models-0.3.0 vs lib/curation_concerns/messages.rb in curation_concerns-models-0.4.0

- old
+ new

@@ -38,29 +38,31 @@ [failure_link(files), I18n.t('curation_concerns.messages.failure.multiple.tag')].join(' ').html_safe end end # Double-quotes are replaced with single ones so this list can be included in a data block. Ex: - # <a href="#" data-content="<a href='#'>embedded link</a>" rel="popover">Click me</a> + # <a href="#" data-content="<a href='#'>embedded link</a>" data-toggle="popover">Click me</a> def file_list(files) - files.map { |gf| link_to_file(gf) }.join(', ').tr("\"", "'") + files.map { |fs| link_to_file(fs) }.join(', ').tr("\"", "'") end def link_to_file(file) link_to(file.to_s, Rails.application.class.routes.url_helpers.curation_concerns_file_set_path(file)) end private def success_link(files) link_to I18n.t('curation_concerns.messages.success.multiple.link'), '#', - rel: 'popover', - data: { content: file_list(files).html_safe, title: I18n.t('curation_concerns.messages.success.title') } + data: { toggle: 'popover', + content: file_list(files).html_safe, + title: I18n.t('curation_concerns.messages.success.title') } end def failure_link(files) link_to I18n.t('curation_concerns.messages.failure.multiple.link'), '#', - rel: 'popover', - data: { content: file_list(files).html_safe, title: I18n.t('curation_concerns.messages.failure.title') } + data: { toggle: 'popover', + content: file_list(files).html_safe, + title: I18n.t('curation_concerns.messages.failure.title') } end end end