(trunk web) #4273 "Display ratio in web client compact view" -- fixed.

This commit is contained in:
Jordan Lee 2011-08-24 19:20:59 +00:00
parent e0410cd17b
commit 2d0a59954a
1 changed files with 4 additions and 1 deletions

View File

@ -275,7 +275,10 @@ TorrentRendererCompact.prototype =
return [ TorrentRendererHelper.formatDL(t),
TorrentRendererHelper.formatUL(t) ].join(' ');
if (t.isSeeding())
return TorrentRendererHelper.formatUL(t);
return [ 'Ratio: ',
Transmission.fmt.ratioString(t.getUploadRatio()),
', ',
TorrentRendererHelper.formatUL(t) ].join('');
return t.getStateString();
},