]> git.cworth.org Git - sup/commitdiff
put labels before subject in thread index view
authorMark Alexander <marka@pobox.com>
Sat, 23 May 2009 18:25:57 +0000 (11:25 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 27 May 2009 16:09:33 +0000 (12:09 -0400)
This patch is probably controversial, and I expect it
to be rejected.  But I really like the way Gmail puts
the labels before the subject, and I've duplicated that here.
It helps out at work, where subject lines tend to be very
long, pushing the labels past the right edge of the window.

lib/sup/modes/thread-index-mode.rb

index 56dcdff2df5f139c0129c984b0f02696d6d2cd70..e298ad225debb28c3287ca5cad54de7d8c75b5cd 100644 (file)
@@ -749,10 +749,11 @@ protected
       [subj_color, size_widget_text],
       [:to_me_color, t.labels.member?(:attachment) ? "@" : " "],
       [:to_me_color, dp ? ">" : (p ? '+' : " ")],
-      [subj_color, t.subj + (t.subj.empty? ? "" : " ")],
     ] +
-      (t.labels - @hidden_labels).map { |label| [:label_color, "+#{label} "] } +
-      [[:snippet_color, snippet]
+      (t.labels - @hidden_labels).map { |label| [:label_color, "#{label} "] } +
+      [
+      [subj_color, t.subj + (t.subj.empty? ? "" : " ")],
+      [:snippet_color, snippet],
     ]
   end