Fixes #36 Sync colours
This commit is contained in:
parent
2941a5903f
commit
b4c1d7e8e6
@ -6,13 +6,13 @@ block content
|
||||
-
|
||||
- let list = []
|
||||
- for(let i = 0; i < content.length; i++) {
|
||||
- list.push({ "name": content[i].name, "path": content[i].name, "status": content[i].status, "display": (content[i].hasOwnProperty("display") && content[i].display != "" ? content[i].display : content[i].name.toSentenceCase().toContent()) } )
|
||||
- list.push({ "name": content[i].name, "core": (typeof content[i].core != 'undefined' && content[i].core ? 'true' : 'false'), "path": content[i].name, "status": content[i].status, "display": (content[i].hasOwnProperty("display") && content[i].display != "" ? content[i].display : content[i].name.toSentenceCase().toContent()) } )
|
||||
- if (content[i].files != undefined) {
|
||||
- for (let ii = 0; ii < content[i].files.length; ii++) {
|
||||
- list.push({ "name": content[i].files[ii].name, "path": content[i].name +"."+ content[i].files[ii].name, "status": content[i].files[ii].status, "display": (content[i].files[ii].hasOwnProperty("display") && content[i].files[ii].display != "" ? content[i].files[ii].display : content[i].files[ii].name.toSentenceCase().toContent()) } )
|
||||
- list.push({ "name": content[i].files[ii].name, "core": (typeof content[i].files[ii].core != 'undefined' && content[i].files[ii].core ? 'true' : 'false'), "path": content[i].name +"."+ content[i].files[ii].name, "status": content[i].files[ii].status, "display": (content[i].files[ii].hasOwnProperty("display") && content[i].files[ii].display != "" ? content[i].files[ii].display : content[i].files[ii].name.toSentenceCase().toContent()) } )
|
||||
- if (content[i].files[ii].files != undefined) {
|
||||
- for (let iii = 0; iii < content[i].files[ii].files.length; iii++) {
|
||||
- list.push({ "name": content[i].files[ii].files[iii].name, "path": content[i].name +"."+ content[i].files[ii].name + "." + content[i].files[ii].files[iii].name, "status": content[i].files[ii].files[iii].status, "display": (content[i].files[ii].files[iii].hasOwnProperty("display") && content[i].files[ii].files[iii].display != "" ? content[i].files[ii].files[iii].display : content[i].files[ii].files[iii].name.toSentenceCase().toContent()) } )
|
||||
- list.push({ "name": content[i].files[ii].files[iii].name, "core": (typeof content[i].files[ii].files[iii].core != 'undefined' && content[i].files[ii].files[iii].core ? 'true' : 'false'), "path": content[i].name +"."+ content[i].files[ii].name + "." + content[i].files[ii].files[iii].name, "status": content[i].files[ii].files[iii].status, "display": (content[i].files[ii].files[iii].hasOwnProperty("display") && content[i].files[ii].files[iii].display != "" ? content[i].files[ii].files[iii].display : content[i].files[ii].files[iii].name.toSentenceCase().toContent()) } )
|
||||
- }
|
||||
- }
|
||||
- }
|
||||
@ -26,7 +26,7 @@ block content
|
||||
- return 1;
|
||||
- }
|
||||
- return 0;
|
||||
- });
|
||||
- });
|
||||
- function createURL(p) {
|
||||
- p = p.split(".")
|
||||
// - return p.length
|
||||
@ -64,7 +64,10 @@ block content
|
||||
else
|
||||
| !{category.name.toContent().toSentenceCase()}
|
||||
td
|
||||
span(class="status-" + category.status)= category.status.toContent().toSentenceCase()
|
||||
if typeof category.core && category.core
|
||||
span.status-complete Complete (Core)
|
||||
else
|
||||
span(class="status-" + category.status)= category.status.toContent().toSentenceCase()
|
||||
|
||||
|
||||
if category.files
|
||||
@ -77,7 +80,10 @@ block content
|
||||
else
|
||||
| !{pattern.name.toContent().toSentenceCase()}
|
||||
td
|
||||
span(class="status-" + pattern.status)= pattern.status.toContent().toSentenceCase()
|
||||
if typeof pattern.core && pattern.core
|
||||
span.status-complete Complete (Core)
|
||||
else
|
||||
span(class="status-" + pattern.status)= pattern.status.toContent().toSentenceCase()
|
||||
|
||||
if pattern.files
|
||||
|
||||
@ -90,17 +96,24 @@ block content
|
||||
else
|
||||
| !{sub.name.toContent().toSentenceCase()}
|
||||
td
|
||||
span(class="status-" + sub.status)= sub.status.toContent().toSentenceCase()
|
||||
if typeof sub.core && sub.core
|
||||
span.status-complete Complete (Core)
|
||||
else
|
||||
span(class="status-" + sub.status)= sub.status.toContent().toSentenceCase()
|
||||
|
||||
div.status-report.status-report-status(data-tab="by status")
|
||||
table(role="presentation")
|
||||
|
||||
tbody
|
||||
- bystatus = list;
|
||||
- for(i=0; i < bystatus.length; i++) {
|
||||
- if (bystatus[i].core == "true") {
|
||||
- bystatus[i].status = "complete"
|
||||
- }
|
||||
- }
|
||||
each status in statuses || []
|
||||
- out = list.filter(list => list.status === status.name)
|
||||
- out = bystatus.filter(list => list.status === status.name)
|
||||
tr
|
||||
td(colspan="2")
|
||||
span(class="status-" + status.name)= status.name.toContent().toSentenceCase() + " (" + out.length + ")"
|
||||
td(colspan="2" class="status-" + status.name)= status.name.toContent().toSentenceCase() + " (" + out.length + ")"
|
||||
|
||||
each item in out
|
||||
tr
|
||||
@ -110,6 +123,9 @@ block content
|
||||
| !{item.display}
|
||||
else
|
||||
| !{item.name.toContent().toSentenceCase()}
|
||||
td
|
||||
if item.core == "true"
|
||||
span (core)
|
||||
td= getCategory(item.path)
|
||||
|
||||
div.status-report.status-report-alpha(data-tab="alphabetical")
|
||||
@ -124,7 +140,10 @@ block content
|
||||
else
|
||||
| !{item.name.toContent().toSentenceCase()}
|
||||
td
|
||||
span
|
||||
span(class="status-" + item.status)= item.status.toContent().toTitleCase()
|
||||
span
|
||||
if item.core == "true"
|
||||
span.status-complete Complete (Core)
|
||||
else
|
||||
span(class="status-" + item.status)= item.status.toContent().toTitleCase()
|
||||
td= getCategory(item.path)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user