[%# 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 Greg Hendricks.
  # Portions created by Greg Hendricks are Copyright (C) 2006
  # Novell. All Rights Reserved.
  #
  # Contributor(s): Greg Hendricks <ghendricks@novell.com> 
  #%]

[% PROCESS global/header.html.tmpl
  title = "Product Builds for $product.name"
%]

<table>
  <tr class="bz_row_header">
    <th>Name</th>
    <th>Milestone</th>
    <th>Description</th>
    <th>Visible</th>
    <th>Actions</th>
  </tr>
  
[% FOREACH b = product.builds %]
<tr>
  <td valign="top">[% b.name FILTER html %]</td>
  <td valign="top">[% b.milestone FILTER html %]</td>
  <td valign="top">[% b.description FILTER html %]</td>
  <td valign="top">[% b.isactive ? "Yes" : "No" %]</td>
  <td valign="top">
  <a href="tr_builds.cgi?action=edit&amp;build_id=[% b.id FILTER none %]&amp;product_id=[% product.id FILTER none %]&plan_id=[% plan_id FILTER url_quote %]">Edit</a>
  <a href="tr_builds.cgi?action=hide&amp;build_id=[% b.id FILTER none %]&amp;product_id=[% product.id FILTER none %]&plan_id=[% plan_id FILTER url_quote %]">[% b.isactive ? "Hide" : "Unhide" %]</a>
  </td>
</tr>
[% END %]
</table>
<br>
  [% IF user.in_group('Testers') %]
  <a href="tr_builds.cgi?action=add&amp;product_id=[% product.id FILTER html %]&plan_id=[% plan_id FILTER url_quote %]">Add new</a>
  [% END %]
[% IF plan_id %]
<p>  
<a href="tr_show_plan.cgi?plan_id=[% plan_id FILTER html %]">Back</a> to test plan
</p>
[% END %]
[% PROCESS global/footer.html.tmpl %]
