{* 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 ERCHANTABILITY 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 . *}
{* Find out if the current user is super user of a run *} {assign var="is_at_least_admin_of_1_run" value=false} {foreach from=$runs key=run_id item=run_values} {if $run_values.is_admin && !$is_at_least_admin_of_1_run} {assign var="is_at_least_admin_of_1_run" value=true} {elseif !$is_at_least_admin_of_1_run} {assign var="is_at_least_admin_of_1_run" value=false} {/if} {/foreach} {* If no runs can be displayed *} {if $runs|@count == 0 || ($runs|@count == 1 && $runs[key($runs)].hidden == 1 && !$runs[key($runs)].is_admin) }

Run --

Access denied !Sorry you don't have access to this run. Please select another run
 
{* If a single run has to be displayed *} {elseif $single_run_display}

Run {$runs[key($runs)].name}

{$runs[key($runs)].description}

Project name: {$runs[key($runs)].project_name}

Date: {$runs[key($runs)].date|date_format:"%d/%m/%y"}

Species: {$runs[key($runs)].species}

Type: {$runs[key($runs)].type}

{if $is_at_least_admin_of_1_run && $login_user}

{/if}

Data nature: {$runs[key($runs)].data_nature}

Number of sequences: {$runs[key($runs)].nb_sequences|number_format:0:' ':' '}

Full sequences length: {$runs[key($runs)].full_seq_size|number_format:0:' ':' '}

Sequencer: {$runs[key($runs)].sequencer}

{assign var="run_size" value=""}
Raw data and analysis results use {$run_size} on the hard drive.
{if $run_analysis|@count > 0} {$run_analysis|@count} analysis have been done on this run.
{else} {$run_analysis|@count} analysis has been done on this run.
{/if} {if $run_data_state == 'stored'} The run data is stored. It will be kept until {$run_retention_date}.
{elseif $run_data_state == 'purged'} The run data has been purged on {$run_purge_date}.
{elseif $run_data_state == 'extended'} The run data retention has been extended to {$run_retention_date}.
{/if}
{if $runs[key($runs)].is_admin } {/if}
{* Find out if an analysis table should be displayed *} {assign var="display_analysis_result" value=false} {foreach from=$h_analysis key=analysis_id item=analysis_values} {if $analysis_values.is_admin && $analysis_values.hidden == 1} {assign var="display_analysis_result" value=true} {elseif $analysis_values.hidden == 0} {assign var="display_analysis_result" value=true} {/if} {/foreach} {assign var="is_admin" value=$runs[key($runs)].is_admin} {include file='analysis_table.tpl'}
{$dir=$data_folder|cat:$runs[key($runs)].directory} {assign var="nb_files" value=0} {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 >= 1}
    Retention date is {$runs[key($runs)].retention_date|date_format}. After this deadline, these data will no longer be available. Only metadata and quality control results will remain in NG6.

    You can download your files easily with Menu > Download. Please visit the FAQ > "How to get my data?" section to know more.

    {/if} {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:$runs[key($runs)].directory)|cat:'/')|cat:$file}
  • {$file}
  • {$nb_files = $nb_files + 1} {/if} {/foreach}
{if $nb_files == 0}
{if $runs[key($runs)].data_state=="purged"} The data have been purged. (Retention limit : {$runs[key($runs)].retention_date|date_format}) {else} Results folder not synchronized yet... {/if}
{/if}
{include file='comments.tpl' comments=$comments tab_id=$comment_tab add_new_comment=$runs[key($runs)].is_admin user_id=$user_id }
{* If multiple runs have to be displayed *} {else} {* Then display the table *}

Runs list you can access

You have access to {$runs|@count} runs.
{assign var="run_size" value=""} Raw data and analysis results use {$run_size} on the hard drive.
{include file='run_table.tpl'}
{/if} {include file='../template/modals.tpl'}