Commit d77e2432 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

diference between analysis template and BasicAnalysis

parent 338086c6
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params_title} Cleaning options {/block}
{block name=params_content}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params}
{assign var="params" value=" "|explode:$analyse.params}
......
{*
Copyright (C) 2009 INRA
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
<input type="hidden" id="analyse_name" value="{$analyse.name}"/>
{block name=description}
<div class="sub-content sc-top">
<div class="ng6-content-header-left analysis">
<h2>Analysis <small>{$analyse.name}</small></h2>
</div>
<div class="ng6-content-header-right">
{$analyse.description}
<br />
All data related to this analysis use <strong> {$analyse_size} </strong> on the hard drive.
</div>
<div style="clear:both"></div>
</div>
{/block}
<div class="sub-content sc-bottom">
{block name=content}
<ul id="myTab" class="nav nav-tabs">
<li class="active"><a href="#results" data-toggle="tab">{block name=results_title} Results {/block}</a></li>
{if $analyse.params != ""}
<li><a href="#parameters" data-toggle="tab">{block name=params_title} Parameters {/block}</a></li>
{/if}
<li><a href="#downloads" data-toggle="tab">{block name=downloads_title} Downloads {/block}</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="results">
{block name=results}{/block}
</div>
{if $analyse.params != ""}
<div class="tab-pane fade" id="parameters">
{block name=params}
{block name=params_content}
<ul>
<li class="parameter">{$analyse.params}</li>
</ul>
{/block}
{/block}
</div>
{/if}
<div class="tab-pane fade" id="downloads">
{block name=download}
{assign var="nb_files" value=0}
{$dir=$data_folder|cat:$analyse.directory}
{foreach $dir|scandir as $file}
{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png"}
{$nb_files = $nb_files + 1}
{/if}
{/foreach}
{if $nb_files == 0}
<div class="alert alert-info">
Results folder not synchronized yet...
</div>
{else}
<ul>
{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>
{/if}
{/foreach}
</ul>
{/if}
{/block}
</div>
</div>
{/block}
</div>
{* Modal initialization *}
{* Global tmpl *}
<div id="ng6modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modal-label-tmpl" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="modal-label-tmpl">Modal header</h3>
</div>
<div id="modal-body-tmpl" class="modal-body"></div>
<div id="modal-foot-tmpl" class="modal-footer"></div>
</div>
{* Error only 1 raw modal *}
<div id="ng6modal-1raw" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modalLabel-1raw" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Error</h3>
</div>
<div class="modal-body">
<div class='tx-nG6-pi1-error'>Only one row should be selected to access this fonctionality.</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>
</div>
</div>
\ No newline at end of file
......@@ -15,4 +15,4 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
\ No newline at end of file
{extends file='AnalysisTemplate.tpl'}
\ No newline at end of file
......@@ -15,97 +15,46 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
<input type="hidden" id="analyse_name" value="{$analyse.name}"/>
{block name=description}
<div class="sub-content sc-top">
<div class="ng6-content-header-left analysis">
<h2>Analysis <small>{$analyse.name}</small></h2>
</div>
<div class="ng6-content-header-right">
{$analyse.description}
<br />
All data related to this analysis use <strong> {$analyse_size} </strong> on the hard drive.
</div>
<div style="clear:both"></div>
</div>
{/block}
{extends file='AnalysisTemplate.tpl'}
<div class="sub-content sc-bottom">
{block name=content}
<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 class="active"><a href="#downloads" data-toggle="tab">Downloads</a></li>
{if $analyse.params != ""}
<li><a href="#parameters" data-toggle="tab">{block name=params_title} Parameters {/block}</a></li>
<li><a href="#parameters" data-toggle="tab">Parameters</a></li>
{/if}
<li><a href="#downloads" data-toggle="tab">{block name=downloads_title} Downloads {/block}</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="results">
{block name=results}{/block}
<div class="tab-pane fade in active" id="downloads">
{assign var="nb_files" value=0}
{$dir=$data_folder|cat:$analyse.directory}
{foreach $dir|scandir as $file}
{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png"}
{$nb_files = $nb_files + 1}
{/if}
{/foreach}
{if $nb_files == 0}
<div class="alert alert-info">
Results folder not synchronized yet...
</div>
{else}
<ul>
{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>
{/if}
{/foreach}
</ul>
{/if}
</div>
{if $analyse.params != ""}
<div class="tab-pane fade" id="parameters">
{block name=params}
{block name=params_content}
<ul>
<li class="parameter">{$analyse.params}</li>
</ul>
{/block}
{/block}
<ul>
<li class="parameter">{$analyse.params}</li>
</ul>
</div>
{/if}
<div class="tab-pane fade" id="downloads">
{block name=download}
{assign var="nb_files" value=0}
{$dir=$data_folder|cat:$analyse.directory}
{foreach $dir|scandir as $file}
{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png"}
{$nb_files = $nb_files + 1}
{/if}
{/foreach}
{if $nb_files == 0}
<div class="alert alert-info">
Results folder not synchronized yet...
</div>
{else}
<ul>
{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>
{/if}
{/foreach}
</ul>
{/if}
{/block}
</div>
</div>
{/block}
</div>
{* Modal initialization *}
{* Global tmpl *}
<div id="ng6modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modal-label-tmpl" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="modal-label-tmpl">Modal header</h3>
</div>
<div id="modal-body-tmpl" class="modal-body"></div>
<div id="modal-foot-tmpl" class="modal-footer"></div>
</div>
{* Error only 1 raw modal *}
<div id="ng6modal-1raw" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="modalLabel-1raw" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Error</h3>
</div>
<div class="modal-body">
<div class='tx-nG6-pi1-error'>Only one row should be selected to access this fonctionality.</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>
</div>
</div>
\ No newline at end of file
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=results_title} Contamination Results {/block}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params_title} Cleaning options {/block}
{block name=params_content}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params}
{assign var="params" value=" "|explode:$analyse.params}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params_title} Filtering options {/block}
{block name=params_content}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params}
{assign var="params" value=" "|explode:$analyse.params}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=results_title} Classifying results {/block}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=results_title} Gene Coverage statistics {/block}
{block name=results}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params}
{block name=params_content}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params}
{block name=params_content}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params_title} Parameters used {/block}
{block name=params_content}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params}
{block name=params_content}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params}
{block name=params_content}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params}{/block}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params_title} Alignment options {/block}
{block name=params_content}
......
......@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*}
{extends file='BasicAnalyse.tpl'}
{extends file='AnalysisTemplate.tpl'}
{block name=params_title} Mothur commands and parameters used {/block}
{block name=params_content}
......
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