+ 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
+