replaces html to content_tag on users helper

This commit is contained in:
decabeza
2017-08-01 14:32:25 +02:00
committed by Bertocq
parent b2b15d1fd7
commit a18d86e8a7

View File

@@ -16,10 +16,8 @@ module UsersHelper
if commentable.nil? if commentable.nil?
deleted_commentable_text(comment) deleted_commentable_text(comment)
elsif commentable.hidden? elsif commentable.hidden?
"<del>".html_safe + commentable.title.html_safe + "</del>".html_safe + ' ' + content_tag(:del, commentable.title) + ' ' +
'<span class="small">'.html_safe + content_tag(:span, '(' + deleted_commentable_text(comment) + ')', class: 'small')
'(' + deleted_commentable_text(comment) + ')' +
"</span>".html_safe
else else
link_to(commentable.title, comment) link_to(commentable.title, comment)
end end