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
c01b5b6e
Commit
c01b5b6e
authored
May 11, 2021
by
Albert Hornos Vidal
Browse files
feat: modify viral genomics table from ena
parent
d7f0ec8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
i18n/en.toml
View file @
c01b5b6e
...
...
@@ -300,3 +300,6 @@ other = "Region"
[website_code]
other
=
"Website code on BSC GitLab"
[description]
other
=
"Description"
layouts/partials/genomics/viral-sequences-table.html
View file @
c01b5b6e
...
...
@@ -16,7 +16,7 @@
<th
scope=
"col"
>
{{ i18n "country" }}
</th>
<th
scope=
"col"
>
{{ i18n "host" }}
</th>
<th
scope=
"col"
>
{{ i18n "isolate" }}
</th>
<th
scope=
"col"
>
{{ i18n "
molecule_type
" }}
</th>
<th
scope=
"col"
>
{{ i18n "
description
" }}
</th>
<th
scope=
"col"
>
{{ i18n "taxon" }}
</th>
</tr>
</thead>
...
...
@@ -24,12 +24,11 @@
{{ range $index, $entry := $.Site.Data.c19dpes_genomics_viral_sequences.viral_sequences }}
<tr>
<td><a
target=
"_blank"
href=
'{{print "https://www.ebi.ac.uk/ena/browser/view/" .accession_id}}'
>
{{ .accession_id }}
</a></td>
{{ $col_date := print (substr .collection_date 0 4) "-" (substr .collection_date 4 2) "-" (substr .collection_date 6 2)}}
<td>
{{ dateFormat "Jan 2, 2006" $col_date }}
</td>
<td>
{{ .collection_date }}
</td>
<td>
{{ .country }}
</td>
<td>
{{ .host }}
</td>
<td>
{{ .isolate }}
</td>
<td>
{{ .
molecule_type
}}
</td>
<td>
{{ .
description
}}
</td>
<td>
{{ .taxon }}
</td>
</tr>
{{ end }}
...
...
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