mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
Merge pull request #364 from futekov/patch-2
Download/upload speed typography changes for web ui
This commit is contained in:
commit
edf158b509
1 changed files with 5 additions and 5 deletions
|
@ -100,11 +100,11 @@ TorrentRendererHelper.renderProgressbar = function (controller, t, progressbar)
|
|||
};
|
||||
|
||||
TorrentRendererHelper.formatUL = function (t) {
|
||||
return '↑ ' + Transmission.fmt.speedBps(t.getUploadSpeed());
|
||||
return '▲' + Transmission.fmt.speedBps(t.getUploadSpeed());
|
||||
};
|
||||
|
||||
TorrentRendererHelper.formatDL = function (t) {
|
||||
return '↓ ' + Transmission.fmt.speedBps(t.getDownloadSpeed());
|
||||
return '▼' + Transmission.fmt.speedBps(t.getDownloadSpeed());
|
||||
};
|
||||
|
||||
TorrentRendererHelper.formatETA = function(t) {
|
||||
|
@ -181,7 +181,7 @@ TorrentRendererFull.prototype = {
|
|||
fmt.countString('peer', 'peers', peer_count),
|
||||
'and',
|
||||
fmt.countString('web seed', 'web seeds', webseed_count),
|
||||
'-',
|
||||
'–',
|
||||
TorrentRendererHelper.formatDL(t),
|
||||
TorrentRendererHelper.formatUL(t)
|
||||
].join(' ');
|
||||
|
@ -189,7 +189,7 @@ TorrentRendererFull.prototype = {
|
|||
// Downloading from 2 webseed(s)
|
||||
return ['Downloading from',
|
||||
fmt.countString('web seed', 'web seeds', webseed_count),
|
||||
'-',
|
||||
'–',
|
||||
TorrentRendererHelper.formatDL(t),
|
||||
TorrentRendererHelper.formatUL(t)
|
||||
].join(' ');
|
||||
|
@ -199,7 +199,7 @@ TorrentRendererFull.prototype = {
|
|||
t.getPeersSendingToUs(),
|
||||
'of',
|
||||
fmt.countString('peer', 'peers', peer_count),
|
||||
'-',
|
||||
'–',
|
||||
TorrentRendererHelper.formatDL(t),
|
||||
TorrentRendererHelper.formatUL(t)
|
||||
].join(' ');
|
||||
|
|
Loading…
Add table
Reference in a new issue