lib/sup/modes/thread_view_mode.rb in sup-0.18.0 vs lib/sup/modes/thread_view_mode.rb in sup-0.19.0
- old
+ new
@@ -8,11 +8,10 @@
class ChunkLayout
attr_accessor :state
end
- DATE_FORMAT = "%B %e %Y %l:%M%p"
INDENT_SPACES = 2 # how many spaces to indent child messages
HookManager.register "detailed-headers", <<EOS
Add or remove headers from the detailed header display of a message.
Variables:
@@ -847,18 +846,18 @@
m.bcc.each_with_index { |p, i| @person_lines[start + addressee_lines.length + from_line.length + i] = p }
addressee_lines += format_person_list " Bcc: ", m.bcc
end
headers = OrderedHash.new
- headers["Date"] = "#{m.date.strftime DATE_FORMAT} (#{m.date.to_nice_distance_s})"
+ headers["Date"] = "#{m.date.to_message_nice_s} (#{m.date.to_nice_distance_s})"
headers["Subject"] = m.subj
show_labels = @thread.labels - LabelManager::HIDDEN_RESERVED_LABELS
unless show_labels.empty?
headers["Labels"] = show_labels.map { |x| x.to_s }.sort.join(', ')
end
if parent
- headers["In reply to"] = "#{parent.from.mediumname}'s message of #{parent.date.strftime DATE_FORMAT}"
+ headers["In reply to"] = "#{parent.from.mediumname}'s message of #{parent.date.to_message_nice_s}"
end
HookManager.run "detailed-headers", :message => m, :headers => headers
from_line + (addressee_lines + headers.map { |k, v| " #{k}: #{v}" }).map { |l| [[color, prefix + " " + l]] }