commit 2b5dacbb74ff91f2a89874c9f67a9c3405d1b775
parent 0603c0203f6b7c52b49d5154c23eff9f3459035f
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Fri, 14 Sep 2007 19:04:31 +0000
minor cryptosig prettynesses
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@575 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/sup b/bin/sup
@@ -126,7 +126,7 @@ begin
c.add :alternate_patina_color, Ncurses::COLOR_BLACK, Ncurses::COLOR_BLUE
c.add :missing_message_color, Ncurses::COLOR_BLACK, Ncurses::COLOR_RED
c.add :attachment_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK
- c.add :valid_cryptosig_color, Ncurses::COLOR_CYAN, Ncurses::COLOR_BLACK
+ c.add :valid_cryptosig_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK, Ncurses::A_BOLD
c.add :invalid_cryptosig_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_RED, Ncurses::A_BOLD
c.add :quote_patina_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK
c.add :sig_patina_color, Ncurses::COLOR_YELLOW, Ncurses::COLOR_BLACK
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -146,7 +146,7 @@ EOS
if gpg_output =~ /^gpg: (.* signature from .*$)/
$1
else
- "Unable to determine signature validity"
+ "Unable to determine validity of cryptographic signature"
end
@status = ($? == 0 ? :valid : :invalid)
diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
@@ -514,9 +514,9 @@ private
color = chunk.valid? ? :valid_cryptosig_color : :invalid_cryptosig_color
case state
when :closed
- [[[color, "#{prefix}+ Cryptographic signature: #{chunk.description}"]]]
+ [[[color, "#{prefix}+ #{chunk.description}"]]]
when :open
- [[[color, "#{prefix}- Cryptographic signature: #{chunk.description}"]]] +
+ [[[color, "#{prefix}- #{chunk.description}"]]] +
chunk.lines.map { |line| [[color, "#{prefix}#{line}"]] }
end
else