]> granicus.if.org Git - transmission/commitdiff
(trunk clutch) #2996 "turn error torrents red in the main window" -- added.
authorCharles Kerr <charles@transmissionbt.com>
Thu, 29 Jul 2010 17:45:23 +0000 (17:45 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Thu, 29 Jul 2010 17:45:23 +0000 (17:45 +0000)
web/javascript/torrent.js
web/stylesheets/common.css

index 5cf9d0e75d099894c604f64823345fabb44c9bcc..64f518a5e70eb0015e4f1f43a63dee59d5df7653 100644 (file)
@@ -652,9 +652,14 @@ Torrent.prototype =
                        e.className = 'torrent_progress_bar ' + status;
                }
 
+               var hasError = this.getErrorMessage( ) != undefined;
                // Update the progress details
-               if(compact_mode)
+               if(compact_mode){
                        progress_details = this.getPeerDetails();
+                       $(root._progress_details_container).toggleClass('error',hasError);
+               } else {
+                       $(root._peer_details_container).toggleClass('error',hasError);
+               }
                setInnerHTML( root._progress_details_container, progress_details );
 
                // Update the peer details and pause/resume button
index 53031b0e2a7a6d80ee008e6bb6c34a9f9b17f7a8..d42e197c29a77cec2a01a725ddc2d7f6844da6e6 100644 (file)
@@ -418,6 +418,19 @@ ul.torrent_list li.torrent div.torrent_peer_details {
        font-size: 1em;
 }
 
+ul.torrent_list li.torrent div.torrent_progress_details.error {
+       color: #FF0000;
+}
+ul.torrent_list li.torrent.selected div.torrent_progress_details.error {
+       color: #FFF;
+}
+ul.torrent_list li.torrent div.torrent_peer_details.error {
+       color: #FF0000;
+}
+ul.torrent_list li.torrent.selected div.torrent_peer_details.error {
+       color: #FFF;
+}
+
 ul.torrent_list li.torrent div.torrent_progress_details.compact,
 ul.torrent_list li.torrent div.torrent_peer_details.compact {
        padding-top: 3px;