Commit 0ff99945 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 76c1e89c
......@@ -29,35 +29,45 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
{/block}
{block name=params}
{if $analyse.params != ""}
<h3> {block name=params_title} Parameters used {/block} </h3>
<div class="underline"> </div>
{block name=params_content}
<ul>
<li class="parameter">{$analyse.params}</li>
</ul>
{/block}
{/if}
{/block}
{block name=results}{/block}
<ul id="myTab" class="nav nav-tabs">
<li class="active"><a href="#results" data-toggle="tab">{block name=results_title} Results {/block}</a></li>
<li><a href="#parameters" data-toggle="tab">{block name=params_title} Parameters {/block}</a></li>
<li><a href="#downloads" data-toggle="tab">{block name=downloads_title} Downloads {/block}</a></li>
</ul>
{block name=download}
<h3> Result file(s) </h3>
<div class="underline"> </div>
<p><ul>
{$dir=$data_folder|cat:$analyse.directory}
{assign var="nb_files" value=0}
{foreach $dir|scandir as $file}
{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png"}
{$link=(('fileadmin'|cat:$analyse.directory)|cat:'/')|cat:$file}
<li class="filelist"><a href="{$link}">{$file}</a> </li>
{$nb_files = $nb_files + 1}
{/if}
{/foreach}
</ul></p>
{if $nb_files == 0}
<p>Results folder not synchronized yet</p>
{/if}
{/block}
\ No newline at end of file
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="results">
{block name=results}{/block}
</div>
<div class="tab-pane fade" id="parameters">
{block name=params}
{if $analyse.params != ""}
{block name=params_content}
<ul>
<li class="parameter">{$analyse.params}</li>
</ul>
{/block}
{/if}
{/block}
</div>
<div class="tab-pane fade" id="downloads">
{block name=download}
<p><ul>
{$dir=$data_folder|cat:$analyse.directory}
{assign var="nb_files" value=0}
{foreach $dir|scandir as $file}
{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png"}
{$link=(('fileadmin'|cat:$analyse.directory)|cat:'/')|cat:$file}
<li class="filelist"><a href="{$link}">{$file}</a> </li>
{$nb_files = $nb_files + 1}
{/if}
{/foreach}
</ul></p>
{if $nb_files == 0}
<p>Results folder not synchronized yet</p>
{/if}
{/block}
</div>
</div>
......@@ -19,9 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{block name=params}{/block}
{block name=results_title} Reads and quality statistics {/block}
{block name=results}
<h3> Reads and quality statistics </h3>
<div class="underline"> </div>
<table class="analyze_table" id="fastqc_resume">
<thead>
<tr>
......
......@@ -17,11 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{extends file='BasicAnalyse.tpl'}
{block name=results_title} Conversion information {/block}
{block name=results}
<input type="hidden" id="analyse_name" value="{$analyse.name}"/>
<h3> Conversion information: </h3>
<div class="underline"> </div>
<br />
<table class="display analysis-result-table">
<thead>
<tr>
......
......@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{extends file='BasicAnalyse.tpl'}
{block name=params_title} Parameters used {/block}
{block name=params_content}
{assign var="params" value=" "|explode:$analyse.params}
{assign var="index" value=$params|@array_keys:"-mcf"}
......@@ -34,22 +33,37 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</ul>
{/block}
{block name=results_title} Demultiplexing results {/block}
{block name=results}
{assign var="analyse_results_sorted" value=$analyse_results[$sample]["default"]|@ksort}
<h3> Demultiplexing results </h3>
<div class="underline"> </div>
<table class="tx-nG6-pi1-listrow">
<tr>
<th> Samples </th>
<th> Number of sequences </th>
</tr>
{foreach from=$analyse_results_sorted key=mid item=value}
{if $mid != "config_file" }
<tr>
<td> {$mid} </td>
<td> {$value|number_format:0:' ':' '} </td>
</tr>
{/if}
{/foreach}
{foreach from=$analyse_results_sorted key=mid item=value}
{$mid} dsd {$value}
{/foreach}
<table class="display analysis-result-table">
<thead>
<tr>
<th> Samples </th>
<th> Number of sequences </th>
</tr>
</thead>
<tbody>
{assign var="total" value=0}
{foreach from=$analyse_results_sorted key=mid item=value}
{if $mid != "config_file" }
<tr>
<td> {$mid} </td>
<td> {$value|number_format:0:' ':' '} </td>
{$total=$total+$value}
</tr>
{/if}
{/foreach}
</tbody>
<tfoot>
<tr>
<td class="info">Total</td>
<td class="info">{$total|number_format:0:' ':' '}</td>
</tr>
</tfoot>
</table>
{/block}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment