<div class='row'>
  <div class='col-lg-12'>
    <ol class='breadcrumb'>
      <li><a href='/packages/<%= @package.prefix %>'><%= @package.prefix %></a></li>
      <li><a href='/packages/<%= @package.prefix %>/<%= @package.name %>'><%= @package.name %></a></li>
      <li class='active'><%= @suite %>/<%= @architecture %></li>
    </ol>

    <h2>
      <%= @package.name %>
      <small>
        [ <%= @suite %>/<%= @architecture %> ]
      </small>
      <%== erb(:package_links) %>
    </h2>

    <div class='job-list-legend'>
      Legend:
      <span class='pinned-false'>Test with packages from <em><%= @suite %></em> only</span>
      <span class='pinned-true'>Test with packages from other suites</span>
    </div>

    <% if @package.reject_listed? %>
      <div class='alert alert-warning'>
        This package is currently <a href="/status/reject_list/">reject_listed</a> and will not have any new test runs.
      </div>
    <% end %>

 <%== erb(:job_listing, locals: { jobs_list: results.records, fields: [:version, :date, :trigger, :duration, :status, :requestor, :results ]}) %>
 <%== erb(:pagination, locals: { query: params, results: results }) %>

    <p>Automate:</p>

    <% automation_info = "# latest status of the package\n" +
                          "$ curl #{@site_url}/#{@packages_dir}/#{@package_dir}/latest.json\n\n"

        if not @artifacts_url_base
                automation_info += "# latest autopkgtest log of the package\n" +
                          "$ curl #{@site_url}/#{@packages_dir}/#{@package_dir}/latest-autopkgtest/log.gz\n\n"
        end

        automation_info += "# test run history of the package\n" +
                          "$ curl #{@site_url}/#{@packages_dir}/#{@package_dir}/history.json"
    %>

    <pre><%= automation_info %></pre>

  </div>
</div>
