Skip to content

Commit

Permalink
Modify script in layouts/partials/dashboards.html
Browse files Browse the repository at this point in the history
This enables dashboard cards to show up even if there is no matching
entry in the EBI index file yet.
These cards will be at the bottom of the dashboard grid and display a
text indicating the absence of entry in EBI index.
  • Loading branch information
Ziip-dev committed Aug 13, 2024
1 parent e9a5245 commit bc684bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions layouts/partials/dashboards.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,14 @@ <h6><a href="{{ .Page.RelPermalink }}">{{ .Name }}</a></h6>
month: 'short',
day: 'numeric'
});

cardData.push({ card, updatedDate });

} else {
spanElement.textContent = 'No matching entry in EBI index';
// In case there is no entry in the EBI file yet,
// we add a mock date for the reordering to keep working
spanElement.textContent = 'not yet available';
updatedDate = new Date('1900-01-01');
cardData.push({ card, updatedDate });
}
});

Expand Down

0 comments on commit bc684bb

Please sign in to comment.