Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jul 23, 2024
1 parent 68a8555 commit 5e9e720
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions views/datasets.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ block content
.ms-2.me-auto
.fw-bold #{pkg.Package}::#{x.name}
i #{x.title}
.div
.align-middle.text-end
.text-nowrap
if x.table
a(target='_blank' type='button' href=`${prefix}/${pkg.Package}/data/${x.name}/csv`)
| csv
span.mx-1 |
if x.table && x.class && x.class.includes('data.frame')
if x.table && Array.isArray(x.class) && x.class.includes('data.frame')
a(target='_blank' type='button' href=`${prefix}/${pkg.Package}/data/${x.name}/xlsx`)
| xlsx
span.mx-1 |
if x.tojson
a(target='_blank' type='button' href=`${prefix}/${pkg.Package}/data/${x.name}/json`)
| json
span.mx-1 |
if x.tojson & x.class && x.class.includes('data.frame')
if x.tojson && Array.isArray(x.class) && x.class.includes('data.frame')
a(target='_blank' type='button' href=`${prefix}/${pkg.Package}/data/${x.name}/ndjson`)
| ndjson
span.mx-1 |
Expand All @@ -35,5 +35,7 @@ block content
span.mx-1 |
a(target='_blank' type='button' href=`${prefix}/${pkg.Package}/data/${x.name}/rds`)
| rds
div.text-secondary.text-end [#{x.class[0]}]

.text-secondary.text-end.small #{x.class[0]}
if x.rows
span.mx-1 |
| #{x.rows} x #{x.fields.length}

0 comments on commit 5e9e720

Please sign in to comment.