diff --git a/deluge/ui/web/css/deluge.css b/deluge/ui/web/css/deluge.css
index 1686f5223..27e75b8e2 100644
--- a/deluge/ui/web/css/deluge.css
+++ b/deluge/ui/web/css/deluge.css
@@ -7,12 +7,12 @@ html, body {
height:100%;
}
-.deluge-torrents td {
+.deluge-torrents td, .x-deluge-peers td {
height: 16px;
line-height: 16px;
}
-.deluge-torrents .torrent-name {
+.deluge-torrents .torrent-name, .x-deluge-peer, .x-deluge-seed {
padding-left: 20px;
background-repeat: no-repeat;
}
@@ -23,8 +23,8 @@ html, body {
#labels .all { background-image: url('/icons/16/all.png'); }
#labels .active { background-image: url('/icons/16/active.png'); }
-#labels .downloading, .deluge-torrents .downloading { background-image: url('/icons/16/downloading.png'); }
-#labels .seeding, .deluge-torrents .seeding { background-image: url('/icons/16/seeding.png'); }
+#labels .downloading, .deluge-torrents .downloading, .x-deluge-peer { background-image: url('/icons/16/downloading.png'); }
+#labels .seeding, .deluge-torrents .seeding, .x-deluge-seed { background-image: url('/icons/16/seeding.png'); }
#labels .queued, .deluge-torrents .queued { background-image: url('/icons/16/queued.png'); }
#labels .paused, .deluge-torrents .paused { background-image: url('/icons/16/inactive.png'); }
#labels .error, .deluge-torrents .error { background-image: url('/icons/16/alert.png'); }
@@ -73,6 +73,14 @@ html, body {
width: 500px;
}
+/* Peers Grid */
+.x-deluge-peer {
+
+}
+
+.x-deluge-seed {
+
+}
/* Login */
.x-deluge-login-window-icon {
diff --git a/deluge/ui/web/js/deluge-details.js b/deluge/ui/web/js/deluge-details.js
index 41be4fad0..e558a7709 100644
--- a/deluge/ui/web/js/deluge-details.js
+++ b/deluge/ui/web/js/deluge-details.js
@@ -245,7 +245,7 @@ Deluge.Details.Peers = {
onRequestComplete: function(torrent) {
var peers = new Array();
torrent.peers.each(function(peer) {
- peers.include([peer.country, peer.ip, peer.client, peer.progress, peer.down_speed, peer.up_speed]);
+ peers.include([peer.country, peer.ip, peer.client, peer.progress, peer.down_speed, peer.up_speed, peer.seed]);
}, this);
this.Store.loadData(peers);
},
@@ -261,11 +261,16 @@ Deluge.Details.Peers = {
}
}
-function flag(val) {
- return String.format('', val);
+function flag(value) {
+ return String.format('
', value);
}
-function peer_progress(value, p, r) {
+function peer_address(value, p, record) {
+ var seed = (record.data['seed'] == 1024) ? 'x-deluge-seed' : 'x-deluge-peer'
+ return String.format('