<%
    my ($retcode,$tracestr,$duration,$op, $is_for_longtask) = @_;
    use ui::cmn;

    my $st = $retcode ? __('Operation has <span class=build-failed>failed</span>.') : 
	sprintf(__('Operation has <span class=build-succeeded>succeeded</span> in %d seconds. '),$duration);
%>

<% $forge->include('wgt-load-semanticui') %>

<% if (!$retcode) { %>

    <h3 class="ui center aligned icon header" >
	<i class="checkmark icon positive"></i>
	<div class=content><%= __('Operation has succeeded') %>
	    <div class="sub header"><%= P__('in %d seconds', $duration) %></div>
	</div>
    </h3>


<% } else { %>


    <h3 class="ui center aligned icon header">
	<i class="remove circle icon negative"></i>
	 <%= __('Operation has failed') %>
    </h3>

<% }  %>

<div class="main ui container">


<p>
 <%= $retcode ?  __('The following output was produced:') :
    ( 
	(length($tracestr) ?  __('The following warnings have been produced:') : __('No warnings have been produced.') )
    )  %>
<%$ $tracestr %>



<div class=your-prototype-is-ready-before>&nbsp;</div>

<% if ((!$retcode && $op !~ /(clearout$)|backport/) ) { %>
<div class="your-prototype-is-ready">

    <h3 class="ui center aligned header">
	<div class=content><%$ __('Your Prototype is ready to run!') %></div>
    </h3>

    <i class="icon idea"></i>

    <%$ __('Just <a class=menuref href=project.browse.output>open Project\'s Output Directory</a>, start Prototype from there, and you\'ll see Webserver Inspector window. Open directory with web scripts using Webserver Inspector and copy your web documents and scripts into it. Use PhpMyAdmin to upload and review your database.') %>
</div>
<% } %>


<div class="your-prototype-is-ready">
<i class="icon idea"></i>
<%$ __('Using <a class=menuref href=menu.pack>Optimize &amp; Pack Prototype</a> menu is a recommended way to create ISO image or ZIP archive.') . ' '  %>
<%$ __('Why? It turns out that <b>a lot</b> of CD/DVD burning and ZIP archiving programs generate file names or file attributes incorrectly or miss some files completely, resulting in some parts of your CD/DVD or unpacked ZIP not working on some operating systems.') %>
</div>




<% if (!$retcode) { %>
<p>&nbsp:</p>
<% $forge->include('wgt-optional-start','protectCode', __('Willing to protect your code?')) %>
    <h1>Consider protecting your code from theft and analysis!</h1>
<ul>
<li>
<i>To protect JavaScript from analysis and theft and for mangling html</i>, 
you can
 use <a target=_blank href=http://stunnix.com/prod/jo/overview.shtml>Stunnix JavaScript Obfuscator</a>;

<li>
<i>To protect VBScript from analysis and theft and for mangling html</i>, 
    you can
 use <a target=_blank href=http://stunnix.com/prod/vbso/overview.shtml>Stunnix VBScript and ASP Obfuscator</a>;

<li>
<i>To protect Perl scripts from analysis and theft</i>, 
    you can
   use <a target=_blank href=http://stunnix.com/prod/po/overview.shtml>Stunnix Perl-Obfus</a> - 
    an advanced obfuscator and encoder for Perl source code;
</ul>

<% $forge->include('wgt-optional-end','protectCode') %>

<% } %>

</div>




<% if (!$is_for_longtask) { %>

<div style="padding-top: 40px;">&nbsp;<p>&nbsp;<p>&nbsp;<p></div>
<script language=javascript>
<!--
window.parent['export-data'] =   ge_by_id('content').innerHTML;
(window.parent['do_show_build_output'])();
-->
</script>

<% } %>
