<% content_for :title, raw(finder.name) %>

<header>
  <h1><%= raw(finder.name) %></h1>
  <% if finder.related.any? %>
    <div class='related-links'>
      <ul>
        <% finder.related.each do |link| %>
          <li><%= link_to "View #{link[:title]}", link[:web_url] %></li>
        <% end %>
      </ul>
    </div>
  <% end %>
  <% if finder.primary_organisation %>
    <div class="metadata">
      <div class="inner-block">
        <%= render partial: 'govuk_component/metadata', locals: {
          from: link_to(finder.primary_organisation.title, finder.primary_organisation.web_url),
        } %>
      </div>
    </div>
  <% end %>
  <% if finder.email_alert_signup %>
    <div class='inner-block'>
      <p class='email-link'>
        <%= link_to "Subscribe to email alerts", finder.email_alert_signup.web_url %>
      </p>
    </div>
  <% end %>
</header>

<%= render finder.facets %>
<div class='js-live-search-results-block'>
  <div class="filtered-results">
    <div class="inner-block">
      <div aria-live='assertive' id='js-search-results-info'>
        <%= render_mustache('result_count', @results.to_hash)%>
      </div>
      <div id='js-results'>
        <%= render_mustache('results', @results.to_hash) %>
      </div>
    </div>
  </div>
</div>

<% content_for :title, raw(finder.name) %>

<header>
  <h1><%= raw(finder.name) %></h1>
  <% if finder.related.any? %>
    <div class='related-links'>
      <ul>
        <% finder.related.each do |link| %>
          <li><%= link_to "View #{link[:title]}", link[:web_url] %></li>
        <% end %>
      </ul>
    </div>
  <% end %>
  <% if finder.primary_organisation %>
    <div class="metadata">
      <div class="inner-block">
        <%= render partial: 'govuk_component/metadata', locals: {
          from: link_to(finder.primary_organisation.title, finder.primary_organisation.web_url),
        } %>
      </div>
    </div>
  <% end %>
</header>

<%= render finder.facets %>
<div class='js-live-search-results-block'>
  <div class="filtered-results">
    <div class="inner-block">
      <div aria-live='assertive' id='js-search-results-info'>
        <%= render_mustache('result_count', @results.to_hash)%>
      </div>
      <div id='js-results'>
        <%= render_mustache('results', @results.to_hash) %>
      </div>
    </div>
  </div>
</div>

Remove email signup link in view
Remove email signup link in view

As we want to be able to access the pages for the email signup pages but
don't want to expose these to Users we want to remove the link until
we're ready for these to go 'live'.
