Browse Source

WebUI: Change the order of the values of speed labels

adaptive-webui-19844
buinsky 9 years ago
parent
commit
dbf995480a
  1. 5
      src/webui/www/private/index.html
  2. 7
      src/webui/www/public/css/Layout.css
  3. 10
      src/webui/www/public/scripts/client.js

5
src/webui/www/private/index.html

@ -136,9 +136,10 @@
<td class="statusBarSeparator"></td> <td class="statusBarSeparator"></td>
<td style="cursor:pointer;"><img id="alternativeSpeedLimits" alt="QBT_TR(Alternative speed limits)QBT_TR" src="images/slow_off.png" /></td> <td style="cursor:pointer;"><img id="alternativeSpeedLimits" alt="QBT_TR(Alternative speed limits)QBT_TR" src="images/slow_off.png" /></td>
<td class="statusBarSeparator"></td> <td class="statusBarSeparator"></td>
<td style="cursor:pointer; min-width: 200px"><img src="images/skin/download.png" alt="" style="padding-right: 5px; margin-bottom: -4px;"><span id="DlInfos"></span></td> <td class="speedLabel"><img src="images/skin/download.png" alt="" style="padding-right: 5px; margin-bottom: -4px;"><span id="DlInfos"></span></td>
<td class="statusBarSeparator"></td> <td class="statusBarSeparator"></td>
<td style="cursor:pointer; min-width: 200px"><img src="images/skin/seeding.png" alt="" style="padding-right: 5px; margin-bottom: -3px;"><span id="UpInfos"></span></td></tr> <td class="speedLabel"><img src="images/skin/seeding.png" alt="" style="padding-right: 5px; margin-bottom: -3px;"><span id="UpInfos"></span></td>
</tr>
</table> </table>
</div> </div>
</div> </div>

7
src/webui/www/public/css/Layout.css

@ -424,5 +424,10 @@ div.toolbox.divider { /* Have to specify div here for IE6's sake */
#desktopFooter td { #desktopFooter td {
vertical-align: top; vertical-align: top;
text-align: center; text-align: left;
}
td.speedLabel {
cursor:pointer;
min-width: 18em;
} }

10
src/webui/www/public/scripts/client.js

@ -373,17 +373,15 @@ window.addEvent('load', function () {
} }
var processServerState = function () { var processServerState = function () {
var transfer_info = ""; var transfer_info = friendlyUnit(serverState.dl_info_speed, true);
if (serverState.dl_rate_limit > 0) if (serverState.dl_rate_limit > 0)
transfer_info += " [" + friendlyUnit(serverState.dl_rate_limit, true) + "]"; transfer_info += " [" + friendlyUnit(serverState.dl_rate_limit, true) + "]";
transfer_info += friendlyUnit(serverState.dl_info_speed, true); transfer_info += " (" + friendlyUnit(serverState.dl_info_data, false) + ")";
transfer_info += " (" + friendlyUnit(serverState.dl_info_data, false) + ")"
$("DlInfos").set('html', transfer_info); $("DlInfos").set('html', transfer_info);
transfer_info = ""; transfer_info = friendlyUnit(serverState.up_info_speed, true);
if (serverState.up_rate_limit > 0) if (serverState.up_rate_limit > 0)
transfer_info += " [" + friendlyUnit(serverState.up_rate_limit, true) + "]"; transfer_info += " [" + friendlyUnit(serverState.up_rate_limit, true) + "]";
transfer_info += friendlyUnit(serverState.up_info_speed, true) transfer_info += " (" + friendlyUnit(serverState.up_info_data, false) + ")";
transfer_info += " (" + friendlyUnit(serverState.up_info_data, false) + ")"
$("UpInfos").set('html', transfer_info); $("UpInfos").set('html', transfer_info);
if (speedInTitle) { if (speedInTitle) {
document.title = "QBT_TR([D:%1 U:%2])QBT_TR".replace("%1", friendlyUnit(serverState.dl_info_speed, true)).replace("%2", friendlyUnit(serverState.up_info_speed, true)); document.title = "QBT_TR([D:%1 U:%2])QBT_TR".replace("%1", friendlyUnit(serverState.dl_info_speed, true)).replace("%2", friendlyUnit(serverState.up_info_speed, true));

Loading…
Cancel
Save