This repository has been archived on 2025-04-15. You can view files and clone it, but cannot push or open issues or pull requests.
unesco-tracker/views/index.pug
2020-01-07 13:02:38 -05:00

31 lines
669 B
Plaintext

extends layout
block content
h1= title
h2= "Sites Visited: " + visits.length + "/" + totalSites
h2= "Visits"
each visit in visits
h3= visit.site
//- Commmand list of all the states
h5
- var states = visit.states.split(',')
- for (var i = 0; i < states.length; i++)
| #{states[i]}
if (i + 1 < states.length)
| ,
h2= "Remaining"
each site in sites
h3= site.site
//- Commmand list of all the states
h5
- var states = site.states.split(',')
- for (var i = 0; i < states.length; i++)
| #{states[i]}
if (i + 1 < states.length)
| ,
include footer.pug