improves deleted elements on user activity

This commit is contained in:
decabeza
2017-08-01 13:53:29 +02:00
committed by Bertocq
parent fc87d70bf8
commit b2b15d1fd7
2 changed files with 6 additions and 5 deletions

View File

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

View File

@@ -649,8 +649,8 @@ es:
show:
deleted: Eliminado
deleted_debate: Este debate ha sido eliminado
deleted_proposal: Este propuesta ha sido eliminada
deleted_budget_investment: Este propuesta de inversión ha sido eliminada
deleted_proposal: Esta propuesta ha sido eliminada
deleted_budget_investment: Esta propuesta de inversión ha sido eliminada
filters:
comments:
one: 1 Comentario