diff --git a/Changelog b/Changelog index e0de258cd..baf552391 100644 --- a/Changelog +++ b/Changelog @@ -33,6 +33,7 @@ - FEATURE: Include DHT traffic in the rate limiter (libtorrent >= v0.15 only) - FEATURE: Support for bitcomet padding files (libtorrent >= v0.15 only) - FEATURE: Option to skip file checking and start seeding immediately in torrent addition dialog (Stephanos Antaris) (libtorrent >= v0.15 only) + - WEB UI: Removed Web UI to match new qBittorrent UI - COSMETIC: Merged download / upload lists - COSMETIC: Torrents can be filtered based on their status - COSMETIC: Torrent properties are now displayed in main window diff --git a/src/eventmanager.cpp b/src/eventmanager.cpp index c7df0791f..2cd74c740 100644 --- a/src/eventmanager.cpp +++ b/src/eventmanager.cpp @@ -58,29 +58,41 @@ void EventManager::modifiedTorrent(QTorrentHandle h) QVariantMap event; if(h.is_paused()) { - event["state"] = QVariant("paused"); + if(h.is_seed()) + event["state"] = QVariant("pausedUP"); + else + event["state"] = QVariant("pausedDL"); } else { if(BTSession->isQueueingEnabled() && h.is_queued()) { - event["state"] = QVariant("queued"); + if(h.is_seed()) + event["state"] = QVariant("queuedUP"); + else + event["state"] = QVariant("queuedDL"); } else { switch(h.state()) { - case torrent_status::finished: - case torrent_status::seeding: - event["state"] = QVariant("seeding"); + case torrent_status::finished: + case torrent_status::seeding: + if(h.upload_payload_rate() > 0) + event["state"] = QVariant("seeding"); + else + event["state"] = QVariant("stalledUP"); break; - case torrent_status::allocating: + case torrent_status::allocating: case torrent_status::checking_files: case torrent_status::queued_for_checking: case torrent_status::checking_resume_data: - event["state"] = QVariant("checking"); + if(h.is_seed()) + event["state"] = QVariant("checkingUP"); + else + event["state"] = QVariant("checkingDL"); break; - case torrent_status::downloading: - case torrent_status::downloading_metadata: + case torrent_status::downloading: + case torrent_status::downloading_metadata: if(h.download_payload_rate() > 0) event["state"] = QVariant("downloading"); else - event["state"] = QVariant("stalled"); + event["state"] = QVariant("stalledDL"); break; default: qDebug("No status, should not happen!!! status is %d", h.state()); @@ -90,14 +102,12 @@ void EventManager::modifiedTorrent(QTorrentHandle h) } event["name"] = QVariant(h.name()); event["size"] = QVariant((qlonglong)h.actual_size()); - if(!h.is_seed()) { - event["progress"] = QVariant(h.progress()); - event["dlspeed"] = QVariant(h.download_payload_rate()); - if(BTSession->isQueueingEnabled()) { - event["priority"] = QVariant(h.queue_position()); - } else { - event["priority"] = -1; - } + event["progress"] = QVariant(h.progress()); + event["dlspeed"] = QVariant(h.download_payload_rate()); + if(BTSession->isQueueingEnabled()) { + event["priority"] = QVariant(h.queue_position()); + } else { + event["priority"] = -1; } event["upspeed"] = QVariant(h.upload_payload_rate()); event["seed"] = QVariant(h.is_seed()); diff --git a/src/webui/css/style.css b/src/webui/css/style.css index e1830fbcf..ac6f3fa41 100644 --- a/src/webui/css/style.css +++ b/src/webui/css/style.css @@ -120,3 +120,22 @@ hr { height:100%; } +#Filters { + width: 120px; + border-right: 1px solid #ccc; + color: #000; +} + +#Filters ul { + list-style-type: none; +} + +#Filters ul img { + padding-right: 2px; + margin-top: 2px; +} + +#Transfers { + vertical-align: top; +} + diff --git a/src/webui/index.html b/src/webui/index.html index 425730cb7..13b5d7a58 100644 --- a/src/webui/index.html +++ b/src/webui/index.html @@ -6,13 +6,11 @@ - - @@ -23,7 +21,7 @@