details: complete the status tab

Fix the remaining data items so they display correctly and tweak
the spacing to make the view a little more pleasant on the eye
This commit is contained in:
Damien Churchill 2011-11-24 17:11:08 +00:00
parent 4a43d6a635
commit a91037843b
1 changed files with 5 additions and 3 deletions

View File

@ -73,7 +73,8 @@ Ext.define('Deluge.details.StatusTab', {
items: [{
defaults: {
labelWidth: 100,
width: 300
width: 300,
margins: '2 0 2 0'
},
items: [{
label: _('Downloaded'),
@ -89,7 +90,7 @@ Ext.define('Deluge.details.StatusTab', {
dataIndex: 'announce'
}, {
label: _('Tracker Status'),
dataIndex: 'tracker'
dataIndex: 'tracker_status'
}]
}, {
defaults: {
@ -146,7 +147,7 @@ Ext.define('Deluge.details.StatusTab', {
dataIndex: 'seed_rank'
}, {
label: _('Date Added'),
dataIndex: 'time_rank'
dataIndex: 'time_added'
}]
}]
});
@ -180,6 +181,7 @@ Ext.define('Deluge.details.StatusTab', {
uploaded: fsize(torrent.total_uploaded, true),
share: (torrent.ratio == -1) ? '∞' : torrent.ratio.toFixed(3),
announce: ftime(torrent.next_announce),
tracker_status: torrent.tracker_status,
tracker_torrent: torrent.tracker_torrent,
downspeed: (torrent.download_payload_rate) ? fspeed(torrent.download_payload_rate) : '0.0 KiB/s',
upspeed: (torrent.upload_payload_rate) ? fspeed(torrent.upload_payload_rate) : '0.0 KiB/s',