[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  #
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
  #%]

[% PROCESS global/variables.none.tmpl %]
[% INCLUDE global/header.html.tmpl
    title = "Internship Dashboard"
    style_urls = [ "extensions/BMO/web/styles/reports.css" ]
    style = "#report td { vertical-align: top; }"
%]

<h1>Internship Dashboard</h1>

[% IF bugs.size %]
  <table id="report" class="standard">
  <thead>
    <tr>
      <th>[% terms.Bug %]</th>
      <th>Summary</th>
      <th>Status</th>
      <th>Hiring Manager</th>
      <th>SCVP</th>
      <th>Product Line</th>
      <th>Business Need</th>
      <th>Name</th>
    </tr>
  </thead>
  <tbody>
    [% FOREACH bug = bugs %]
      <tr class="report_item [% loop.count % 2 == 1 ? "report_row_odd" : "report_row_even" %]">
        <td>[% bug.id FILTER bug_link(bug) FILTER none %]</td>
        <td>[% bug.short_desc FILTER html %]</td>
        <td>[% bug.bug_status FILTER html %]</td>
        <td>[% bug.hiring_manager FILTER html %]</td>
        <td>[% bug.scvp FILTER html %]</td>
        <td>[% bug.product_line FILTER html FILTER html %]</td>
        <td>[% bug.business_need FILTER html FILTER html_line_break %]</td>
        <td>[% bug.intern_name FILTER html FILTER html %]</td>
      </tr>
    [% END %]
  </tbody>
  </table>
[% ELSE %]
  <p>
    No open intern requisitions.
  </p>
[% END %]

[% INCLUDE global/footer.html.tmpl %]
