gecko-dev/webtools/litmus/templates/en/default/show/show.html.tmpl

108 строки
3.7 KiB
Cheetah
Исходник Обычный вид История

[%# 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 Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Zach Lipton <zach@zachlipton.com>
#%]
[%# INTERFACE:
# $test - the test object to display
# @results - the list of all possible test results
# $showallresults (optional) - if true, then all test results
# will be shown
#
#%]
[% PROCESS global/selects.none.tmpl %]
[% script = ['edittestsscript'] %]
[% INCLUDE global/header.html.tmpl title = "Testcase $test.testid - $test.summary"
script=script includeselects=1 %]
<p class="pageinstruction">Test [% test.testid %] - [% test.summary %]</p>
<strong>Current Status:</strong> [% INCLUDE platformtable test=test %]
<form action="process_test.cgi" method="post" name="form" id="form">
<input name="isTestResult" type="hidden" value="true">
<input name="editingTestcases" id="editingTestcases" type="hidden" value="">
<input name="return" type="hidden" value="show_test.cgi?id=[% test.testid FILTER html %]">
<table border="0">
[% INCLUDE test/test.html.tmpl test=test results=results showedit=1 %]
<tr>
<td><br /><input type="submit" id="Submit" name="Submit" value="Submit Results" onclick="findEdited()"></td>
</tr>
<tr><td colspan="3"><hr /></td></tr>
<tr>
<td colspan="2">
<table border="0">
[%
# by default, we show only recent results and the last
# three non-recent results. the showallresults switch
# causes us to show all results:
%]
[% nonrecentcount = 0 %]
[% FOREACH curresult = test.testresults %]
[% UNLESS showallresults %]
[% IF curresult.isrecent == 0 && nonrecentcount >= 3 %]
[% NEXT %]
[% ELSIF curresult.isrecent == 0 %]
[% nonrecentcount = nonrecentcount+1 %]
[% END %]
[% END %]
<tr>
<td colspan="2" style="[% curresult.result.style %]">
------- Test Result From
<a href="mailto:[% curresult.user.email FILTER html %]">[% curresult.user.email FILTER html %]</a>
[% curresult.timestamp FILTER html %] -------
</td>
</tr>
<tr><td colspan="2">
<div align="center"><strong>Result: [% curresult.result.name FILTER html %]</strong></div><br />
</td></tr>
<tr width="40%">
<td valign="top">
<table border="0">
<tr><td><div align="right"><strong>Product:</strong></div></td><td>[% INCLUDE product_to_img product=curresult.testid.product %]</td></tr>
<tr><td><div align="right"><strong>Platform:</strong></div></td><td>[% INCLUDE platform_to_img platform=curresult.platform %]</td></tr>
<tr><td><div align="right"><strong>Opsys:</strong></div></td><td>[% IF curresult.opsys %][% curresult.opsys.name FILTER html %][% ELSE %]Unknown[% END %]</td></tr>
<tr><td><div align="right"><strong>Branch:</strong></div></td><td>[% curresult.branch.name FILTER html %]</td></tr>
<tr><td><div align="right"><strong>Build ID:</strong></div></td><td>[% curresult.buildid FILTER html %]</td></tr>
<tr><td><br /></td></tr>
</table>
</td>
<td valign="top">[% IF curresult.note %]
<strong>Note: </strong> [% curresult.note FILTER html %]
[% END %]
</td>
</tr>
[% END %]
</table>
<a href="show_test.cgi?showallresults=1&id=[%test.testid FILTER html | uri%]">Show all results</a>
</td></tr>
</table>
[% INCLUDE global/footer.html.tmpl %]