changing colours for visits/remaining

This commit is contained in:
2020-01-08 12:49:34 -05:00
parent fe53e623a9
commit 65a6759874
2 changed files with 18 additions and 5 deletions

View File

@ -11,15 +11,13 @@ block content
- var num = (visits.length/totalSites) * 100
- var percent = num.toFixed(2);
h2= percent + "% Complete"
- var sitesVisited = [];
h2= "Visits"
each visit in visits
- sitesVisited.push(visit.id);
div(class="listing")
h3(class="site") #[a(href="/sites/" + visit.slug) #{visit.site}]
h3(class="site") #[a(class="visits" href="/sites/" + visit.slug) #{visit.site}]
//- Commmand list of all the states
h5(class="state")
- var states = visit.states.split(',')
@ -32,7 +30,7 @@ block content
each site in sites
if !(sitesVisited.includes(site.id))
div(class="listing")
h3(class="site") #[a(href="/sites/" + site.slug) #{site.site}]
h3(class="site") #[a(class="remaining" href="/sites/" + site.slug) #{site.site}]
//- Commmand list of all the states
h5(class="state")
- var states = site.states.split(',')