covid19/tmpl/country.pug

24 lines
594 B
Plaintext
Raw Permalink Normal View History

2020-04-27 03:04:16 +00:00
extends ./master.pug
block main
2020-04-29 01:04:17 +00:00
h2.d-flex.justify-content-between
span= data.name
a.align-self-center(href="/" style="font-size: 50%") ◀ All Countries
2020-04-27 03:04:16 +00:00
2020-04-27 23:10:38 +00:00
+heroChart
2020-04-27 03:04:16 +00:00
2020-04-29 00:58:53 +00:00
mixin renderItemName(item)
if item.name
if item.counties && item.counties.length
a(href=("/countries/" + item.countrySafeName + "-" + item.safeName + ".html"))= item.name
else
= item.name
else if item.state
= item.state
else if item.country === 'United States'
em.text-muted All #{item.country}
else
em.text-muted Other #{item.country}
2020-04-27 15:54:26 +00:00
2020-04-29 00:58:53 +00:00
+dataTable(data.states, 'State/Province', 'state')