gecko-dev/webtools/litmus/templates/en/default/variables.none.tmpl
ccooper%deadsquid.com b719adb951 b=323768
- change tests references to testcases
- fix changed field abbreviations
- display help text in popup divs
- disabled testgroup/subgroup editing -> interim step before test runs
- display lists of all testgroups/subgroups to which a testcase belongs when viewing a testcase
- make separate testing config (SysConfig) template, and display testing config when present and viewing matching single testcases
- allow admins to run individual testcases regardless of whether they are enabled or not
- remove secondary, imprecise build ID lookup JS stanza
- change layout/options for admin sidebar

b=322585
- fix defaulttestgroup display when continuing to test

b=320546
- add top testers stats back to stats page, now that we can hide email addresses

b=322607
- add show all/hide all to test list display for runtests

b=334871
- allow fulltext searching of testcases by summary, steps, and expected results
2006-06-05 03:40:24 +00:00

196 lines
5.1 KiB
Cheetah
Executable File

[%# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1
#
# 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 Litmus.
#
# The Initial Developer of the Original Code is
# The Mozilla Corporation.
# Portions created by the Initial Developer are Copyright (C) 2006
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Chris Cooper <ccooper@deadsquid.com>
# Zach Lipton <zach@zachlipton.com>
#
# ***** END LICENSE BLOCK *****
#%]
[%# 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 %]
[% platform.name | truncate(6) | html %]
[% 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 %]
<td style="[% test.state(curplat).style | html %]">
[% 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">
[% title FILTER html %]
</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">
<a href="show_test.cgi?id=[%curtest.testcase_id | uri | html %]">
[% curtest.testcase_id FILTER html %]
</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 %]