mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-10 17:35:00 -06:00
[Web UI] Changes in menus to keep the client's style
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
<img src="images/skin/mascot.png" align="right"></img>
|
||||
<p>qBittorrent ${VERSION} QBT_TR(Web UI)QBT_TR</p>
|
||||
<h3>qBittorrent ${VERSION} QBT_TR(Web UI)QBT_TR</h3>
|
||||
<p>QBT_TR(An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar.)QBT_TR</p>
|
||||
<p>Copyright (c) 2011-2015 The qBittorrent project</p>
|
||||
<p>QBT_TR(Home Page: )QBT_TR <a href="http://www.qbittorrent.org">http://www.qbittorrent.org</a></p>
|
||||
|
||||
<p>QBT_TR(Bug Tracker: )QBT_TR <a href="http://bugs.qbittorrent.org">http://bugs.qbittorrent.org</a></p>
|
||||
<p>QBT_TR(Forum: )QBT_TR <a href="http://forum.qbittorrent.org">http://forum.qbittorrent.org</a></p>
|
||||
<p>QBT_TR(IRC: #qbittorrent on Freenode)QBT_TR</p>
|
||||
<h3>QBT_TR(Original authors)QBT_TR</h3>
|
||||
<a href="mailto:ishanarora@gmail.com">Ishan Arora</a>, <a href="mailto:ank.iitd@gmail.com">Ankit Gupta</a>, <a href="mailto:shikhar.ap@gmail.com">Chandan Shikhar Dua</a> and <a href="mailto:swapnil.iitd@gmail.com">Swapnil Kumar</a>.
|
||||
|
||||
@@ -218,10 +218,12 @@ window.addEvent('load', function () {
|
||||
myTable.columns['priority'].force_hide = !queueing_enabled;
|
||||
myTable.updateColumn('priority');
|
||||
if (queueing_enabled) {
|
||||
$('queueingLinks').removeClass('invisible');
|
||||
$('queueingButtons').removeClass('invisible');
|
||||
$('queueingMenuItems').removeClass('invisible');
|
||||
}
|
||||
else {
|
||||
$('queueingLinks').addClass('invisible');
|
||||
$('queueingButtons').addClass('invisible');
|
||||
$('queueingMenuItems').addClass('invisible');
|
||||
}
|
||||
|
||||
@@ -49,9 +49,9 @@ var dynamicTable = new Class({
|
||||
},
|
||||
|
||||
initColumns : function () {
|
||||
this.newColumn('priority', 'width: 30px; cursor: pointer', '#');
|
||||
this.newColumn('state_icon', 'width: 16px', '');
|
||||
this.newColumn('name', 'min-width: 200px; cursor: pointer', 'QBT_TR(Name)QBT_TR');
|
||||
this.newColumn('priority', 'width: 90px; cursor: pointer', '#');
|
||||
this.newColumn('size', 'width: 100px; cursor: pointer', 'QBT_TR(Size)QBT_TR');
|
||||
this.newColumn('progress', 'width: 80px; cursor: pointer', 'QBT_TR(Done)QBT_TR');
|
||||
this.newColumn('num_seeds', 'width: 100px; cursor: pointer', 'QBT_TR(Seeds)QBT_TR');
|
||||
@@ -507,6 +507,10 @@ var dynamicTable = new Class({
|
||||
state = "queued";
|
||||
else if (state == "checkingUP" || state == "checkingDL")
|
||||
state = "checking";
|
||||
else if (state == "forcedDL" || state == "metaDL")
|
||||
state = "downloading";
|
||||
else if (state == "forcedUP")
|
||||
state = "uploading";
|
||||
|
||||
var img_path = 'images/skin/' + state + '.png';
|
||||
|
||||
@@ -522,12 +526,6 @@ var dynamicTable = new Class({
|
||||
}));
|
||||
};
|
||||
|
||||
// name
|
||||
|
||||
this.columns['name'].updateTd = function (td, row) {
|
||||
td.set('html', escapeHtml(this.getRowValue(row)));
|
||||
};
|
||||
|
||||
// priority
|
||||
|
||||
this.columns['priority'].updateTd = function (td, row) {
|
||||
@@ -548,6 +546,12 @@ var dynamicTable = new Class({
|
||||
else return 0;
|
||||
};
|
||||
|
||||
// name
|
||||
|
||||
this.columns['name'].updateTd = function (td, row) {
|
||||
td.set('html', escapeHtml(this.getRowValue(row)));
|
||||
};
|
||||
|
||||
// size
|
||||
|
||||
this.columns['size'].updateTd = function (td, row) {
|
||||
|
||||
@@ -366,8 +366,8 @@ initializeWindows = function() {
|
||||
title: 'QBT_TR(About)QBT_TR',
|
||||
loadMethod: 'xhr',
|
||||
contentURL: 'about.html',
|
||||
width: 650,
|
||||
height: 200,
|
||||
width: 550,
|
||||
height: 290,
|
||||
padding: 10
|
||||
});
|
||||
});
|
||||
@@ -385,13 +385,15 @@ initializeWindows = function() {
|
||||
|
||||
addClickEvent('shutdown', function(e) {
|
||||
new Event(e).stop();
|
||||
new Request({
|
||||
url: 'command/shutdown',
|
||||
onSuccess: function() {
|
||||
document.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><title>QBT_TR(qBittorrent has been shutdown.)QBT_TR</title><style type=\"text/css\">body { text-align: center; }</style></head><body><h1>QBT_TR(qBittorrent has been shutdown.)QBT_TR</h1></body></html>");
|
||||
stop();
|
||||
}
|
||||
}).send();
|
||||
if (confirm('QBT_TR(Are you sure you want to quit qBittorrent?)QBT_TR')) {
|
||||
new Request({
|
||||
url: 'command/shutdown',
|
||||
onSuccess: function() {
|
||||
document.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><title>QBT_TR(qBittorrent has been shutdown.)QBT_TR</title><style type=\"text/css\">body { text-align: center; }</style></head><body><h1>QBT_TR(qBittorrent has been shutdown.)QBT_TR</h1></body></html>");
|
||||
stop();
|
||||
}
|
||||
}).send();
|
||||
}
|
||||
});
|
||||
|
||||
// Deactivate menu header links
|
||||
|
||||
Reference in New Issue
Block a user