Skip to content

Commit

Permalink
Minor broken link in the view and an issue when there are no datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
j-maynard committed Sep 24, 2024
1 parent 3e52791 commit f05051c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<p class="govuk-body"><%= t('homepage.welcome') %></p>
<ul class="govuk-list govuk-list--bullet">
<li><a href="/<%= i18n.language %>/<%= t('routes.publish.start') %>/"><%- t('homepage.dataset_creation') %></a></li>
<li><a href="/<%= i18n.language %>/<%= t('routes.dataset') %>/"><%- t('homepage.uploaded_already') %></a> <%- t('developer_tag') %></li>
<li><a href="/<%= i18n.language %>/<%= t('routes.view.start') %>/"><%- t('homepage.uploaded_already') %></a> <%- t('developer_tag') %></li>
</ul>

</main>
Expand Down
2 changes: 1 addition & 1 deletion src/views/view/list.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- <a href="#" class="govuk-back-link">Back</a> -->
<main class="govuk-main-wrapper" id="main-content" role="main">
<h1 class="govuk-heading-xl"><%= t('view.list.heading') %></h1>
<% if (locals?.filelist.length > 0) {%>
<% if (locals?.filelist && locals?.filelist.length > 0) {%>
<ul class="govuk-list">
<% locals?.filelist.forEach(function(file) { %>
<% file.titles.forEach(function(title) { %>
Expand Down

0 comments on commit f05051c

Please sign in to comment.