2005-11-18 20:37:38 +03:00
|
|
|
[%# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1
|
2005-07-30 00:21:01 +04:00
|
|
|
#
|
2005-11-18 20:37:38 +03:00
|
|
|
# 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.
|
2005-07-30 00:21:01 +04:00
|
|
|
#
|
|
|
|
# The Original Code is Litmus.
|
|
|
|
#
|
2005-11-18 20:37:38 +03:00
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# The Mozilla Corporation.
|
2006-01-25 20:03:40 +03:00
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2006
|
2005-11-18 20:37:38 +03:00
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Chris Cooper <ccooper@deadsquid.com>
|
|
|
|
# Zach Lipton <zach@zachlipton.com>
|
2005-07-30 00:21:01 +04:00
|
|
|
#
|
2005-11-18 20:37:38 +03:00
|
|
|
# ***** END LICENSE BLOCK *****
|
2005-07-30 00:21:01 +04:00
|
|
|
#%]
|
|
|
|
|
|
|
|
[%# INTERFACE:
|
|
|
|
# none
|
|
|
|
#%]
|
|
|
|
|
|
|
|
[% # General utility functions for templates %]
|
|
|
|
|
|
|
|
[% # select box for platform/os/branch/etc %]
|
|
|
|
[% # selname - the name of the widget
|
|
|
|
# obj - the object to retrieve values from
|
|
|
|
# name - method to retrieve display name
|
|
|
|
# value - method to retrieve form value
|
|
|
|
# onchange (optional) - js action to be performed on change
|
|
|
|
# selected (optional) - form value for the default selection
|
|
|
|
%]
|
|
|
|
[% BLOCK select %]
|
|
|
|
[% IF onchange %]
|
|
|
|
[% onchangereal = "onChange=\"$onchange\"" %]
|
|
|
|
[% END %]
|
|
|
|
<select name="[% selname %]" id="[% selname %]" [% onchangereal %]>
|
|
|
|
[% FOREACH cur=obj %]
|
|
|
|
<option value="[% cur.${value} FILTER html %]"
|
|
|
|
[% IF selected == cur.${value} %]selected[% END %]>
|
|
|
|
[% cur.${name} FILTER html %]
|
|
|
|
</option>
|
|
|
|
[% END %]
|
|
|
|
</select>
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
|
|
|
|
[% # given a platform object, return either an <img> tag with the
|
|
|
|
# object for that platform, or a shortened version of the name
|
|
|
|
#
|
|
|
|
# platform - the platform object
|
|
|
|
%]
|
|
|
|
[% BLOCK platform_to_img %]
|
|
|
|
[% IF platform.iconpath %]
|
|
|
|
<img src="skins/icons/platform/[% platform.iconpath FILTER html%]"
|
|
|
|
width="20" height="22">
|
|
|
|
[% ELSE %]
|
2005-11-11 03:06:45 +03:00
|
|
|
[% platform.name | truncate(6) | html %]
|
2005-07-30 00:21:01 +04:00
|
|
|
[% END %]
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
[% # given a product object, return either an <img> tag with the
|
|
|
|
# object for that product, or a shortened version of the name
|
|
|
|
#
|
|
|
|
# product - the product object
|
|
|
|
%]
|
|
|
|
[% BLOCK product_to_img %]
|
|
|
|
[% IF product.iconpath %]
|
|
|
|
<img src="skins/icons/product/[% product.iconpath FILTER html %]"
|
|
|
|
width="36" height="13">
|
|
|
|
[% ELSE %]
|
|
|
|
[% product.name FILTER html | truncate(6) %]
|
|
|
|
[% END %]
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
[% # build a small table for a test list describing the platform status %]
|
|
|
|
[% # test - the test to create the table for
|
|
|
|
%]
|
|
|
|
[% BLOCK platformtable %]
|
|
|
|
<table border="0">
|
|
|
|
<tr>
|
|
|
|
[% FOREACH curplat = test.product.platforms %]
|
2005-11-11 03:06:45 +03:00
|
|
|
<td style="[% test.state(curplat).style | html %]">
|
2005-07-30 00:21:01 +04:00
|
|
|
[% INCLUDE platform_to_img platform=curplat %]
|
|
|
|
</td>
|
|
|
|
[% END %]
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
[% # hotlist box %]
|
|
|
|
[% # title - the title for the hotlist
|
|
|
|
# hotlist - an array of tests to display
|
|
|
|
%]
|
|
|
|
[% BLOCK hotlist %]
|
|
|
|
<div class="hotlist">
|
|
|
|
<p>
|
|
|
|
<font size="+2">
|
2005-11-11 03:06:45 +03:00
|
|
|
[% title FILTER html %]
|
2005-07-30 00:21:01 +04:00
|
|
|
</font>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<table width="100%" border="0">
|
|
|
|
<tr>
|
|
|
|
<th width="7%">
|
|
|
|
<div align="center">
|
|
|
|
<strong>
|
|
|
|
Test #
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<th width="7%">
|
|
|
|
<div align="center">
|
|
|
|
Product
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<th width="70%">
|
|
|
|
<div align="center">
|
|
|
|
<strong>
|
|
|
|
Summary
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<th width="9%">
|
|
|
|
<div align="center">
|
|
|
|
<strong>
|
|
|
|
Platform
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
<th width="9%">
|
|
|
|
<strong>
|
|
|
|
Branch
|
|
|
|
</strong>
|
|
|
|
</th>
|
|
|
|
<th width="7%">
|
|
|
|
<div align="center">
|
|
|
|
<strong>
|
|
|
|
Bug #
|
|
|
|
</strong>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
[% FOREACH curtest = hotlist %]
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<div align="right">
|
2006-06-05 07:40:24 +04:00
|
|
|
<a href="show_test.cgi?id=[%curtest.testcase_id | uri | html %]">
|
|
|
|
[% curtest.testcase_id FILTER html %]
|
2005-07-30 00:21:01 +04:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td height="20">
|
|
|
|
<div align="center">
|
|
|
|
[% INCLUDE product_to_img product=curtest.product %]
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td nowrap>
|
|
|
|
[% curtest.summary FILTER html | truncate(50) %]
|
|
|
|
</td>
|
|
|
|
<td nowrap>
|
|
|
|
[% INCLUDE platformtable test=curtest %]
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div align="center">
|
|
|
|
*
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="#">
|
|
|
|
*
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
[% UNLESS hotlist.0 %]
|
|
|
|
<p><strong>Zarro tests found.</strong></p>
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
<a href="#">
|
|
|
|
Show all confirmed failures
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
[% END %]
|