<section class="covid__topic-wrapper">
  <%= render "govuk_publishing_components/components/heading", {
    text: related_topic_section["header"],
    padding: true,
    border_top: 2,
    margin_bottom: 6
  } %>

  <ul class="govuk-list">
    <% related_topic_section["links"].each do | link | %>
      <li class="covid__topic-list-item">
        <%= link_to(
          link["label"], link["url"], class: 'covid__topic-list-link govuk-link',
          data: {
            track_category: "pageElementInteraction",
            track_action: "RelatedTopics",
            track_label: link["url"],
          }
        ) %>
      </li>
    <% end %>
  </ul>
</section>

Add related links partial for Coronavirus hub pages
Add related links partial for Coronavirus hub pages

In order to help users navigate between related Coronavirus hub pages, we want to add a new UI component to display the appropriate header, link labels and links to all of the other Coronavirus hub pages.

The content for this has been created in the appropriate YAML files within the govuk-coronavirus-content repo.

This change adds a partial to render the related links for a single hub page and enables tracking for link clicks.
