pjs/webtools/litmus/templates/en/default/show/show.html.tmpl

104 строки
3.0 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:
# $testcase - the testcase object to display
# $showallresults (optional) - if true, then all test results
# will be shown
# @testgroups - a list of testgroups to which the current testcase belongs
# @subgroups - a list of subgroups to which the current testcase belongs
#%]
[% PROCESS global/selects.none.tmpl %]
[% IF testcase.community_enabled OR show_admin %]
[% title="Testcase ID #$testcase.testcase_id - $testcase.summary" %]
[% ELSE %]
[% title="Testcase disabled" %]
[% END %]
[% includeselects=1 %]
[% INCLUDE global/html_header.tmpl js_files=['js/prototype.lite.js','js/moo.fx.js','js/moo.fx.pack.js','js/EditTests.js','js/FormValidation.js','js/SelectBoxes.js'] %]
[% INCLUDE global/litmus_header.tmpl %]
<div id="page">
[% INCLUDE sidebar/sidebar.tmpl %]
<div id="content">
<h1 class="firstHeading">[% title | html %]</h1>
[% IF ! testcase.community_enabled AND ! show_admin %]
<div class="section-full">
<div class="section-content">
<span class="errorHeading">This testcase is not currently enabled.</span>
</div>
</div>
[% ELSE %]
<div class="section-full">
<div class="section-content">
<form action="process_test.cgi" method="post" name="form" id="show_test_form">
<input name="isTestResult" type="hidden" value="true">
<input name="return" type="hidden" value="show_test.cgi?id=[% testcase.testcase_id | html %]">
<input name="id" type="hidden" value="[% testcase.testcase_id | html %]">
<div class="testcase-content">
[% INCLUDE test/test.html.tmpl testcase=testcase results=results show_config=1 sysconfig=sysconfig %]
</div>
</div>
</div>
[% IF sysconfig %]
[% INCLUDE runtests/testing_config.tmpl sysconfig=sysconfig %]
<script type="text/javascript">
Element.cleanWhitespace('testconfig');
tc_init();
</script>
[% END %]
<h1 class="firstHeading">Recent Test Results for [% title | html %]</h1>
[% INCLUDE reporting/test_results.tmpl results=test_results %]
</div>
</div>
[% END %]
</div> <!--END content-->
</div> <!--END page-->
[% INCLUDE global/litmus_footer.tmpl %]
[% INCLUDE global/html_footer.tmpl %]