From: Charles Kerr Date: Thu, 29 Jul 2010 17:45:23 +0000 (+0000) Subject: (trunk clutch) #2996 "turn error torrents red in the main window" -- added. X-Git-Tag: 2.10~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f09baa8b9535fe4eebe155c43e0118cd3df8a42;p=transmission (trunk clutch) #2996 "turn error torrents red in the main window" -- added. --- diff --git a/web/javascript/torrent.js b/web/javascript/torrent.js index 5cf9d0e75..64f518a5e 100644 --- a/web/javascript/torrent.js +++ b/web/javascript/torrent.js @@ -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 diff --git a/web/stylesheets/common.css b/web/stylesheets/common.css index 53031b0e2..d42e197c2 100644 --- a/web/stylesheets/common.css +++ b/web/stylesheets/common.css @@ -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;