<% project ||= report_element.project %>
<div class="report-element report-project-header-element">
  <div class="report-element-header">
    <div class="row">
      <div class="pull-left user-time">
        <%= t('projects.reports.elements.project_header.user_time', timestamp: l(project.created_at, format: :full)) %>
      </div>
    </div>
  </div>
  <div class="report-element-body" data-hook="report-project-header-element">
    <div class="row">
      <div class="col-xs-12 project-name">
        <h2>
          <%= t('projects.reports.elements.project_header.title', project: project.name) %>
          <% if project.archived? %>
            <span class="label label-warning"><%= t('search.index.archived') %></span>
          <% end %>
        </h2>
      </div>
    </div>
  </div>
  <% if defined?(children) %>
    <div class="report-element-children">
      <%= children %>
    </div>
  <% end %>
</div>
