diff --git a/punch_list/backlog.html b/punch_list/backlog.html index a0b5405..ba00ee7 100644 --- a/punch_list/backlog.html +++ b/punch_list/backlog.html @@ -48,31 +48,48 @@ --> -
+
+
+
 
+
STATS
+
 
+
+
-
-
- Backlog -
+
+ +
+ +
+
+ Backlog +
+
-
-
- - - - - Notes:
- - - -
+
+ + + + + Notes:
+ + + +
-
- -
+
+ +
+
+
+ +
+ +
-
diff --git a/punch_list/backlogManage.js b/punch_list/backlogManage.js index 37a974a..efabd24 100644 --- a/punch_list/backlogManage.js +++ b/punch_list/backlogManage.js @@ -90,10 +90,15 @@ function genList(punchList, element) { var list = '
    '; + var countInProgress = 0; + var countWaiting = 0; + var countNew = 0; + var countDone = 0; for (i = 0; i < listLength; i++) { - if (punchList[i].progress.toLowerCase() === "in progress") { var style = "inProgress" } - else if (punchList[i].progress.toLowerCase() === "waiting") { var style = "waiting" } - else { var style = "punch-default" } + if (punchList[i].progress.toLowerCase() === "in progress") { var style = "inProgress"; countInProgress++; } + else if (punchList[i].progress.toLowerCase() === "waiting") { var style = "waiting"; countWaiting++;} + else if (punchList[i].progress.toLowerCase() === "new") { var style = "punch-default"; countNew++;} + else { var style = "punch-default"; countDone++ } if (window.tagFilterItem != undefined) { console.log('in tags filter'); @@ -232,6 +237,11 @@ function genList(punchList, element) { list += "
"; document.getElementById(element).innerHTML = list; + document.getElementById("stats").innerHTML = '
Total items:
' + punchList.length; + document.getElementById("stats").innerHTML += '
Blocked items:
' + countWaiting; + document.getElementById("stats").innerHTML += '
In Progress:
' + countInProgress; + document.getElementById("stats").innerHTML += '
New Items:
' + countNew; + document.getElementById("stats").innerHTML += '
Done Items:
' + countDone + '
'; mkSortable(); enableDrop(); diff --git a/punch_list/css/custom.css b/punch_list/css/custom.css index 3a7fbaf..1651f3d 100644 --- a/punch_list/css/custom.css +++ b/punch_list/css/custom.css @@ -1,3 +1,6 @@ +.column-left { display: hidden; } +.column-right { display: hidden; } +.column-middle { width: 50%; overflow: hidden; float: left;} #mainMenuWrapper:after { content: ""; clear: both; } #sortable { list-style-type: none; margin: 0; padding: 0; width: 100%; } #sortable li { font-size: 1.4em; color: #AAA;} @@ -33,8 +36,8 @@ .ui-widget-header { background: #333; color: #aaa;} a.punch-default { color: #00BFFF; font-size: 12px; text-decoration: none;} a.punch-default:hover { color: #00FFFF; text-shadow: 0px 0px 23px #FFF; } -.punch-default { border: 0px solid #AAA; color: #aaa; font-size: 12px; } -.inProgress { color: orange; font-size: 12px; } +.punch-default { border: 0px solid #AAA; color: #aaa; font-size: 12px; font-family: Arial, Helvetica, sans-serif;} + .inProgress { color: orange; font-size: 12px; } .waiting { color: red; font-size: 12px; } .overdue { color: red; font-size: 12px; } .duesoon { color: yellow; font-size: 12px;} @@ -304,7 +307,19 @@ textarea { @media (min-width: 750px) { body { margin-left: auto; margin-right: auto; - width: 800px; } + width: 90%; } + .column-left { + display: block; + margin-top: 100px; + margin-left: auto; + width: 25%; + height: 99%; + background-color: #000; + overflow: hidden; + float: left; + border-right: 3px solid #000; + } + .column-right { display: block; width: 25%; overflow: hidden; float: left;} /* Navbar */ .clock-wrapper { display: block; diff --git a/punch_list/metadata.js b/punch_list/metadata.js index 7e21d0b..f7f9198 100644 --- a/punch_list/metadata.js +++ b/punch_list/metadata.js @@ -1,4 +1,4 @@ -var version = "0.7.038", +var version = "0.8.009", debug = false, jsonUrl = "https://api.myjson.com/bins/1dodsj", showDone = false,