Method: Packages::UpdateMessagesView#richtext
- Defined in:
- library/packages/src/lib/packages/update_messages_view.rb
#richtext ⇒ String
Gets richtext representation of messages passed to constructor
22 23 24 25 26 27 |
# File 'library/packages/src/lib/packages/update_messages_view.rb', line 22 def richtext text = "<h1>" + _("Packages notifications") + "</h1>\n<p>" \ + _("You have notifications from the following packages:") + "</p>" text << richtext_toc() if .size > 1 text << .map { |m| (m) }.join("<hr>") end |