(web) #5214 'add free space indicator': added with patch by taem
This commit is contained in:
parent
895f86e0fb
commit
729ef84e62
|
@ -66,6 +66,8 @@
|
|||
<span id="filter-count"> </span>
|
||||
</div>
|
||||
|
||||
<div title="Free Space available in the Download Directory" id="freespace-info"></div>
|
||||
|
||||
<div id='speed-info'>
|
||||
<div id='speed-dn-container'>
|
||||
<div id='speed-dn-icon'></div>
|
||||
|
|
|
@ -18,7 +18,8 @@ var RPC = {
|
|||
_TurtleState : 'alt-speed-enabled',
|
||||
_TurtleUpSpeedLimit : 'alt-speed-up',
|
||||
_UpSpeedLimit : 'speed-limit-up',
|
||||
_UpSpeedLimited : 'speed-limit-up-enabled'
|
||||
_UpSpeedLimited : 'speed-limit-up-enabled',
|
||||
_DownloadDirFreeSpace : 'download-dir-free-space'
|
||||
};
|
||||
|
||||
function TransmissionRemote(controller)
|
||||
|
|
|
@ -1080,6 +1080,7 @@ Transmission.prototype =
|
|||
menu = $('#settings_menu');
|
||||
|
||||
this.serverVersion = o.version;
|
||||
this.freeSpace = o[RPC._DownloadDirFreeSpace];
|
||||
|
||||
this.prefsDialog.set(o);
|
||||
|
||||
|
@ -1145,6 +1146,12 @@ Transmission.prototype =
|
|||
$('#speed-dn-container').toggleClass('active', d>0 );
|
||||
$('#speed-dn-label').text( fmt.speedBps( d ) );
|
||||
|
||||
if (this.freeSpace > 0)
|
||||
text = fmt.size (this.freeSpace);
|
||||
else
|
||||
text = '';
|
||||
$('#freespace-info').text( text);
|
||||
|
||||
// visible torrents
|
||||
$('#filter-count').text( fmt.countString('Transfer','Transfers',this._rows.length ) );
|
||||
},
|
||||
|
|
|
@ -143,6 +143,13 @@ div#toolbar {
|
|||
background: url("images/arrow-down.png") bottom no-repeat; }
|
||||
#statusbar #speed-info #speed-up-container, #statusbar #speed-info #speed-dn-container {
|
||||
display: inline; }
|
||||
#statusbar #freespace-info {
|
||||
float: right;
|
||||
margin-top: 5px;
|
||||
margin-right: 10px;
|
||||
display: inline; }
|
||||
#statusbar #freespace-info * {
|
||||
display: inline-block; }
|
||||
|
||||
/***
|
||||
****
|
||||
|
|
|
@ -246,6 +246,18 @@ $statusbar-height: 26px;
|
|||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
#freespace-info
|
||||
{
|
||||
float: right;
|
||||
margin-top: 5px;
|
||||
margin-right: 10px;
|
||||
display: inline;
|
||||
|
||||
* {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
|
|
|
@ -138,6 +138,13 @@ div#toolbar {
|
|||
background: url("images/arrow-down.png") bottom no-repeat; }
|
||||
#statusbar #speed-info #speed-up-container, #statusbar #speed-info #speed-dn-container {
|
||||
display: inline; }
|
||||
#statusbar #freespace-info {
|
||||
float: right;
|
||||
margin-top: 5px;
|
||||
margin-right: 10px;
|
||||
display: inline; }
|
||||
#statusbar #freespace-info * {
|
||||
display: inline-block; }
|
||||
|
||||
/***
|
||||
****
|
||||
|
|
|
@ -236,6 +236,18 @@ $statusbar-height: 24px;
|
|||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
#freespace-info
|
||||
{
|
||||
float: right;
|
||||
margin-top: 5px;
|
||||
margin-right: 10px;
|
||||
display: inline;
|
||||
|
||||
* {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/***
|
||||
|
|
Loading…
Reference in New Issue