<%
  header_title ||= ""
  policies ||= nil
  topics ||= []
%>
<%= render partial: 'shared/heading',
          locals: { type: header_title,
                    heading: document.title,
                    extra: true } %>

<%= render('documents/archive_notice', document: document, type: header_title) if document.archived? %>

<div class="heading-extra">
  <div class="inner-heading">
    <%= render partial: 'shared/available_languages', locals: {object: document} %>
    <%= national_statistics_logo(document) %>
  </div>
</div>
<%= render partial: 'documents/metadata', locals: { document: document, policies: policies, topics: topics } %>

<%
  header_title ||= ""
  policies ||= nil
  topics ||= []
%>
<%= render partial: 'shared/heading',
          locals: { type: header_title,
                    heading: document.title,
                    extra: true } %>

<%= render('documents/archive_notice', document: document, type: document.format_name) if document.archived? %>

<div class="heading-extra">
  <div class="inner-heading">
    <%= render partial: 'shared/available_languages', locals: {object: document} %>
    <%= national_statistics_logo(document) %>
  </div>
</div>
<%= render partial: 'documents/metadata', locals: { document: document, policies: policies, topics: topics } %>

Use document format name to describe document
Use document format name to describe document

header_title is set to "Operations in #{location}" for fatality
notices.
