X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/16e97c57caf4770e1c6c0e6d52f9f5b2310a0e19..1b20b5187ec1b150947089472a52c885cdd26ddb:/app/helpers/note_helper.rb diff --git a/app/helpers/note_helper.rb b/app/helpers/note_helper.rb index 2e9850aef..0ba503228 100644 --- a/app/helpers/note_helper.rb +++ b/app/helpers/note_helper.rb @@ -1,6 +1,14 @@ module NoteHelper include ActionView::Helpers::TranslationHelper + def note_description(author, description) + if !author.nil? && author.status == "deleted" + RichText.new("text", t("notes.show.description_when_author_is_deleted")) + else + description + end + end + def note_event(event, at, by) if by.nil? t("notes.show.event_#{event}_by_anonymous_html",