Browse Source

bring back geography data displays

pull/1/head
Rob Colbert 3 years ago
parent
commit
81e963644a
  1. 50
      app/views/dashboard/link-analyzer.pug
  2. 50
      app/views/dashboard/view.pug

50
app/views/dashboard/link-analyzer.pug

@ -39,36 +39,34 @@ block content
.uk-margin
.uk-card.uk-card-secondary.uk-card-small.uk-card-body
h5.uk-card-title Top Countries
.uk-text-italic Geography data unavailable.
//- table.uk-table.uk-table-small
//- thead
//- tr
//- th Country
//- th Visits
//- tbody
//- each entry in linkCountryStats.stats
//- tr
//- td.uk-table-expand= entry.country ? entry.country : '--'
//- td= entry.count
table.uk-table.uk-table-small
thead
tr
th Country
th Visits
tbody
each entry in linkCountryStats.stats
tr
td.uk-table-expand= entry.country ? entry.country : '--'
td= entry.count
div(class="uk-width-1-1 uk-width-1-2@m")
.uk-margin
.uk-card.uk-card-secondary.uk-card-small.uk-card-body
h5.uk-card-title Top Cities
.uk-text-italic Geography data unavailable.
//- table.uk-table.uk-table-small
//- thead
//- tr
//- th City
//- th(class="uk-visible@m") State
//- th Country
//- th Visits
//- tbody
//- each entry in linkCityStats.stats
//- tr
//- td= entry.city ? entry.city : '--'
//- td(class="uk-visible@m")= entry.region ? entry.region : '--'
//- td= entry.country ? entry.country : '--'
//- td= entry.count
table.uk-table.uk-table-small
thead
tr
th City
th(class="uk-visible@m") State
th Country
th Visits
tbody
each entry in linkCityStats.stats
tr
td= entry.city ? entry.city : '--'
td(class="uk-visible@m")= entry.region ? entry.region : '--'
td= entry.country ? entry.country : '--'
td= entry.count
block viewjs
script(src="/chart.js/chart.min.js")

50
app/views/dashboard/view.pug

@ -66,36 +66,34 @@ block content
.uk-margin
.uk-card.uk-card-secondary.uk-card-small.uk-card-body
h5.uk-card-title Top Countries
.uk-text-italic Geography data unavailable.
//- table.uk-table.uk-table-small
//- thead
//- tr
//- th Country
//- th Visits
//- tbody
//- each entry in linkCountryStats.stats
//- tr
//- td.uk-table-expand= entry.country ? entry.country : '--'
//- td= entry.count
table.uk-table.uk-table-small
thead
tr
th Country
th Visits
tbody
each entry in linkCountryStats.stats
tr
td.uk-table-expand= entry.country ? entry.country : '--'
td= entry.count
.uk-margin
.uk-card.uk-card-secondary.uk-card-small.uk-card-body
h5.uk-card-title Top Cities
.uk-text-italic Geography data unavailable.
//- table.uk-table.uk-table-small
//- thead
//- tr
//- th City
//- th(class="uk-visible@m") State
//- th Country
//- th Visits
//- tbody
//- each entry in linkCityStats.stats
//- tr
//- td= entry.city ? entry.city : '--'
//- td(class="uk-visible@m")= entry.region ? entry.region : '--'
//- td= entry.country ? entry.country : '--'
//- td= entry.count
table.uk-table.uk-table-small
thead
tr
th City
th(class="uk-visible@m") State
th Country
th Visits
tbody
each entry in linkCityStats.stats
tr
td= entry.city ? entry.city : '--'
td(class="uk-visible@m")= entry.region ? entry.region : '--'
td= entry.country ? entry.country : '--'
td= entry.count
block viewjs
script(src="/chart.js/chart.min.js")

Loading…
Cancel
Save