Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
INB
covid-portal
covid-portal-es
Commits
df4e02e2
Commit
df4e02e2
authored
May 31, 2021
by
Alejandro Asensio
Browse files
feat: move download button to the right above table
parent
8678efe6
Changes
3
Hide whitespace changes
Inline
Side-by-side
content/english/health-variables.md
View file @
df4e02e2
...
...
@@ -44,7 +44,7 @@ tabs:
id
:
"
specific_projects_variables"
title
:
"
COVID-19
ISCIII's
funded
projects
variables"
content
:
-
text
:
"
The
table
below
shows
health
variables
reported
by
projects
funded
by
the
ISCIII
funds
Fondo
COVID19.
This
information
will
be
updated
regularly
as
projects
report
new
variables
(last
update
February
9th,
2021)
."
-
text
:
"
The
table
below
shows
health
variables
reported
by
projects
funded
by
the
ISCIII
funds
Fondo
COVID19.
This
information
will
be
updated
regularly
as
projects
report
new
variables."
data
:
"
/files/health_isciii_variables.csv"
partial
:
"
health_variables/isciii-table.html"
---
layouts/health-variables/single.html
View file @
df4e02e2
...
...
@@ -34,13 +34,8 @@
<h6>
{{ safeHTML .headers }}
</h6>
{{ end }}
<p>
{{ safeHTML .text }}
</p>
{{ if and (ge $len 2) (eq $index $last) }}
{{ end }}
{{ end }}
</article>
{{ if isset . "data" }}
<a
class=
"btn btn-primary"
href=
"{{ .data }}"
id=
"download-button-{{ $index }}"
>
{{ i18n "download_csv" }}
</a>
{{ end }}
{{ if isset . "partial" }}
{{ partial .partial $parentScope }}
{{ end }}
...
...
layouts/partials/health_variables/isciii-table.html
View file @
df4e02e2
<div
class=
"d-flex flex-row-reverse"
>
<a
class=
"btn btn-primary"
href=
"/files/health_isciii_variables.csv"
id=
"download-button"
>
{{ i18n "download_csv" }}
</a>
</div>
<table
class=
"table table-hover table-sm table-responsive mt-2"
id=
"isciii-table"
style=
"display: table;"
>
<thead
class=
"thead-light"
>
<tr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment