From 2f09baa8b9535fe4eebe155c43e0118cd3df8a42 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 29 Jul 2010 17:45:23 +0000 Subject: [PATCH] (trunk clutch) #2996 "turn error torrents red in the main window" -- added. --- web/javascript/torrent.js | 7 ++++++- web/stylesheets/common.css | 13 +++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) 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; -- 2.40.0