Make long WP change information accessible

pull/1735/head
Hagen Schink 10 years ago
parent d813275d93
commit a9b9f2c46a
  1. 4
      lib/plugins/acts_as_journalized/lib/journal_formatter/base.rb

@ -64,9 +64,9 @@ class JournalFormatter::Base
def format_html_details(label, old_value, value)
label = content_tag('strong', label)
old_value = content_tag("i", h(old_value)) if old_value && !old_value.blank?
old_value = content_tag("i", h(old_value), title: h(old_value)) if old_value && !old_value.blank?
old_value = content_tag("strike", old_value) if old_value and value.blank?
value = content_tag("i", h(value)) if value.present?
value = content_tag("i", h(value), title: h(value)) if value.present?
value ||= ""
[label, old_value, value]

Loading…
Cancel
Save