[%# 1.0@bugzilla.org %]
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the Bugzilla Test Runner System.
  #
  # The Initial Developer of the Original Code is Maciej Maczynski.
  # Portions created by Maciej Maczynski are Copyright (C) 2001
  # Maciej Maczynski. All Rights Reserved.
  #
  # Contributor(s): Greg Hendricks <ghendricks@novell.com>
  #%]

[%# INTERFACE:
  # ...
  #%]
  
[% link = "${table.get_order_url}&order=" %]

[% DECORATIVE_BORDER_BEGIN %] 
<table width="400">
  <tr class="bz_row_header">
    <th><a href="[% link %]environment_id">ID</a></th>
    <th><a href="[% link %]name">Name</th>
    <th><a href="[% link %]product">Product</th>
  </tr>
  [% FOREACH env = table.list %]
  <tr class="[% loop.count % 2 == 0 ? "bz_row_odd" : "bz_row_even" %]" onclick="sr([% loop.count %]);">
    <td align="center"><a href="tr_show_environment.cgi?env_id=[% env.id FILTER none %]">[% env.id FILTER none %]</a></td>
    <td>[% env.name FILTER none %]</td>
    <td>[% env.product.name FILTER none %]</td>
  </tr>
  [% END %]
</table>
  [% IF NOT table.viewall %]
    [% PROCESS navigation %]
  [% END %]
[% DECORATIVE_BORDER_END %] 

<br>
<a href="tr_new_environment.cgi">Create a New Environment</a>