Commit ae811bae authored by Albert Hornos Vidal's avatar Albert Hornos Vidal
Browse files

feat(#18): add host sequences table

parent 3da79b49
......@@ -282,3 +282,6 @@ other = "Molecule type"
other = "TAXON"
other = "Region"
......@@ -29,7 +29,7 @@
<div class="tab-pane fade" id="host-sequences-content" role="tabpanel" aria-labelledby="host-sequences-tab">
<div style="text-align:center"><img src="/images/banners/coming-soon-banner.png" style="margin-top: 2rem;" width="200"></div>
{{ partial "genomics/host-sequences-table.html" . }}
<div class="tab-pane fade" id="genomic-resources-content" role="tabpanel" aria-labelledby="genomic-resources-tab">
<table class="table table-hover table-sm table-responsive" id="host-sequences-table" style="display: table;">
<thead class="thead-light">
<th scope="col">{{ i18n "accession_id" }}</th>
<th scope="col">{{ i18n "description" }}</th>
<th scope="col">{{ i18n "country" }}</th>
<th scope="col">{{ i18n "region" }}</th>
{{ range $index, $entry := $.Site.Data.c19pes_host_sequences.host_sequences }}
<td><a target="_blank" href='{{print "" .accession_id}}'>{{ .accession_id }}</a></td>
<td>{{ .description }}</td>
<td>{{ .country }}</td>
<td>{{ .region }}</td>
{{ end }}
<script type="text/javascript" charset="utf8" src=""></script>
<script type="text/javascript" charset="utf8" src=""></script>
$(document).ready(() => {
const covicatTable = $('#host-sequences-table').DataTable({
dom: `
ordering: false,
// Move download button next to filter search box.
const downloadButtonHostSequences = document.querySelector('#download-button-2');
const searchHostSequences = document.querySelector('#search-2');
searchHostSequences.insertAdjacentElement('afterend', downloadButtonHostSequences);
......@@ -47,8 +47,8 @@
// Move download button next to filter search box.
const downloadButtonCovicat = document.querySelector('#download-button-2');
const searchCovicat = document.querySelector('#search-2');
searchCovicat.insertAdjacentElement('afterend', downloadButtonViralSequences);
const downloadButtonViralSequences = document.querySelector('#download-button-2');
const searchViralSequences = document.querySelector('#search-2');
searchViralSequences.insertAdjacentElement('afterend', downloadButtonViralSequences);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment