show status of packages that are not installed

This commit is contained in:
dmacias72 2017-09-24 21:54:33 -06:00
parent 6e651142ec
commit 145e96ee35
5 changed files with 18 additions and 8 deletions

View File

@ -0,0 +1 @@
baf29e419af041071e97bc6beabc8f77 NerdPack-2017.09.24-x86_64-1.txz

Binary file not shown.

View File

@ -3,7 +3,7 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "NerdPack">
<!ENTITY author "dmacias72">
<!ENTITY version "2017.07.08">
<!ENTITY version "2017.09.24">
<!ENTITY launch "Settings/&name;">
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-&name;/master">
<!ENTITY pluginURL "&gitURL;/plugin/&name;.plg">
@ -17,6 +17,8 @@
<CHANGES>
##&name;
###2017.09.24
- show status of packages that are not installed
###2017.07.08
- fix check for downloaded package
###2017.06.17

View File

@ -15,3 +15,7 @@
white-space:nowrap;
cursor: pointer;
}
.uninstalled {
white-space:nowrap;
cursor: inherit;
}

View File

@ -59,21 +59,24 @@ function packageQuery(force) {
var len = data.packages.length, i = 0;
for (i; i < len; i++) {
var Update;
if (data.packages[i].downloadeq == data.packages[i].downloaded && data.packages[i].installeq == data.packages[i].installed){
var Downloaded = data.packages[i].downloaded;
var DownloadEQ = data.packages[i].downloadeq;
var Installed = data.packages[i].installed;
if (DownloadEQ == Downloaded && data.packages[i].installeq == Installed){
if (Installed == "yes")
Update = "<span><i class='uptodate fa fa-check'></i> up-to-date </span>";
else
Update = "<span><i class='uninstalled fa fa-info-circle'></i> uninstalled </span>";
}else{
Update = "<span ><a class='update'><i class='updateready fa fa-cloud-download'></i> update ready </a></span>";
Ready = true;
}
var Downloaded = data.packages[i].downloaded;
if (data.packages[i].downloadeq != data.packages[i].downloaded)
if (DownloadEQ != Downloaded)
Downloaded = 'old';
var Installed = data.packages[i].installed;
var Checked = "";
if (data.packages[i].config=="yes"){
if (data.packages[i].config == "yes"){
Checked = "checked";
Count++;
}