{* 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 . *}
{* If no runs can be displayed *} {if $runs|@count == 0 } {$llang.no_raw} {* If a single run has to be displayed *} {elseif $runs|@count == 1}

{$llang.run} {$runs[$first_id].name} :

{$runs[$first_id].description}
{if $run_analysis|@count > 0} {($llang.miltiple_analysis_run_desc|replace:"###RUN_NAME###":$runs[$first_id].name)|replace:"###NB_ANALYSIS###":($run_analysis|@count)} {else} {($llang.single_analysis_run_desc|replace:"###RUN_NAME###":$runs[$first_id].name)|replace:"###NB_ANALYSIS###":($run_analysis|@count)} {/if}
{assign var="run_size" value=""} {($llang.run_desc|replace:"###RUN_SIZE###":"###RUN_SIZE###")|replace:"###RUN_SIZE###":$run_size}

{$llang.project_name} {$llang.date} {$llang.species} {$llang.type} {$llang.data_nature} {$llang.nb_sequences} {$llang.full_seq_size} {$llang.sequencer}
{$runs[$first_id].project_name} {$runs[$first_id].date|date_format:"%d-%m-%y"} {$runs[$first_id].species} {$runs[$first_id].type} {$runs[$first_id].data_nature} {$runs[$first_id].nb_sequences|number_format:0:' ':' '} {$runs[$first_id].full_seq_size|number_format:0:' ':' '} {$runs[$first_id].sequencer}

{$llang.downloads} :

{if $nb_files == 0}

{$llang.not_synchro}

{/if}
{* If there is some analysis to display *} {if $run_analysis|@count > 0}

{$llang.analyzes_done}


{* Find out if the current user is super user of an analysis *} {assign var="superuser" value=false} {foreach from=$run_analysis key=analysis_id item=analysis_values} {if $analysis_values.superuser && !$superuser} {assign var="superuser" value=true} {elseif !$superuser} {assign var="superuser" value=false} {/if} {/foreach} {if $superuser && $login_user} {/if} {include file="recursive_list_analysis_display.tpl" element=$h_run_analysis prof=0} {if $superuser && $login_user} {/if}
{$llang.name} {$llang.description} {$llang.software} {$llang.version}
{$llang.toolbar_title}  
{/if} {* If multiple runs have to be displayed *} {else} {* Find out if the current user is super user of a run *} {assign var="superuser" value=false} {foreach from=$runs key=run_id item=run_values} {if $run_values.superuser && !$superuser} {assign var="superuser" value=true} {elseif !$superuser} {assign var="superuser" value=false} {/if} {/foreach} {* Then display the table *}

{$llang.run_list}

{$llang.list_run_desc|replace:"###NB_RUN###":($runs|@count)}
{assign var="run_size" value=""} {($llang.run_desc|replace:"###RUN_SIZE###":"###RUN_SIZE###")|replace:"###RUN_SIZE###":$run_size}


{include file='run_table.tpl'} {/if}