commit 8d4a9bcf333a0989beeca1b9221a958b71bf7968
parent 0cf173b0753bbe7987cb220bd6230eb25fd084bb
Author: William Morgan <w@masanjin.net>
Date: Fri, 30 May 2008 15:38:37 +0000
add attachment widget to thread-view-mode as well
Diffstat:
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
@@ -562,29 +562,29 @@ private
open_widget = [color, (state == :closed ? "+ " : "- ")]
new_widget = [color, (m.has_label?(:unread) ? "N" : " ")]
- starred_widget =
- if m.has_label?(:starred)
- [star_color, "* "]
+ starred_widget = if m.has_label?(:starred)
+ [star_color, "*"]
else
- [color, " "]
+ [color, " "]
end
+ attach_widget = [color, (m.has_label?(:attachment) ? "@" : " ")]
case state
when :open
@person_lines[start] = m.from
- [[prefix_widget, open_widget, new_widget, starred_widget,
+ [[prefix_widget, open_widget, new_widget, attach_widget, starred_widget,
[color,
"#{m.from ? m.from.mediumname : '?'} to #{m.recipients.map { |l| l.shortname }.join(', ')} #{m.date.to_nice_s} (#{m.date.to_nice_distance_s})"]]]
when :closed
@person_lines[start] = m.from
- [[prefix_widget, open_widget, new_widget, starred_widget,
+ [[prefix_widget, open_widget, new_widget, attach_widget, starred_widget,
[color,
"#{m.from ? m.from.mediumname : '?'}, #{m.date.to_nice_s} (#{m.date.to_nice_distance_s}) #{m.snippet}"]]]
when :detailed
@person_lines[start] = m.from
- from_line = [[prefix_widget, open_widget, new_widget, starred_widget,
+ from_line = [[prefix_widget, open_widget, new_widget, attach_widget, starred_widget,
[color, "From: #{m.from ? format_person(m.from) : '?'}"]]]
addressee_lines = []