{* 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 project can be displayed *} {if $projects|@count == 0 || ($projects|@count == 1 && $projects[key($projects)].hidden == 1 && !$projects[key($projects)].is_admin)}

Sorry no results to display
{* If a single project has to be displayed *} {elseif $single_project_display}

Projet {$projects[key($projects)].name}

{assign var="manag_values" value="{$managment_purged_data[$projects[key($projects)].id]}"} {$projects[key($projects)].description}

{$manag_values.nb_runs} run(s) and {$manag_values.nb_analyses} analyse(s) have been done on the project {$projects[key($projects)].name}.
{assign var="project_size" value=""} Raw data and analysis results use {$project_size} on the hard drive for the whole project.
New data added to this project will be kept{$retention_policy}.


Data Purged Stored Extended All
# Runs {if $manag_values.state.purged.nb_run}{$manag_values.state.purged.nb_run} ({$tx_nG6_utils->get_octet_string_representation($manag_values.state.purged.size_run)}){else}-{/if} {if $manag_values.state.stored.nb_run}{$manag_values.state.stored.nb_run} ({$tx_nG6_utils->get_octet_string_representation($manag_values.state.stored.size_run)}){else}-{/if} {if $manag_values.state.extended.nb_run}{$manag_values.state.extended.nb_run} ({$tx_nG6_utils->get_octet_string_representation($manag_values.state.extended.size_run)}){else}-{/if} {$manag_values.nb_runs}
# Analysis {if $manag_values.state.purged.nb_analyze}{$manag_values.state.purged.nb_analyze} ({$tx_nG6_utils->get_octet_string_representation($manag_values.state.purged.size_analyze)}){else}-{/if} {if $manag_values.state.stored.nb_analyze}{$manag_values.state.stored.nb_analyze} ({$tx_nG6_utils->get_octet_string_representation($manag_values.state.stored.size_analyze)}){else}-{/if} {if $manag_values.state.extended.nb_analyze}{$manag_values.state.extended.nb_analyze} ({$tx_nG6_utils->get_octet_string_representation($manag_values.state.extended.size_analyze)}){else}-{/if} {$manag_values.nb_analyses}
{* Find out if the current user is super user of a run *} {if $project_runs|@count == 0} {assign var="is_at_least_admin_of_1_run" value=false} {elseif $projects[key($projects)].is_admin} {assign var="is_at_least_admin_of_1_run" value=true} {else} {assign var="is_at_least_admin_of_1_run" value=false} {/if} {assign var="runs" value=$project_runs} {assign var="is_project_admin" value=$projects[key($projects)].is_admin} {include file='run_table.tpl'}
{* 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=$projects[key($projects)].is_admin} {include file='analysis_table.tpl'}
{if $login_user}

{if $projects[key($projects)].is_admin} In the table below are listed all users with an access to the project. {elseif $projects[key($projects)].is_manager} In the table below are listed all users with an access to the project, the administrator is the user who had run the pipeline. As a manager, you are in charge of managing access to the project. To manage users access, you can use the add and the delete buttons on the bottom of the table. The add button will display a form so you can seek for a user or add a brand new one. 2 access levels are available: the manager who has the right to create new users and to modify users' information he had created, and member who has only the right to browse the project. {elseif $projects[key($projects)].is_member} In the table below are listed all users with an access to the project, the administrator is the user who had run the pipeline and the manager is the user in charge of managing access to the project. As a project member you can browse all the data related to the project. For further information, send an email to the project manager(s). {/if}

{assign var=current_user_values value=""} {foreach from=$project_users key=c_user_id item=user_values} {* highlight user personnal line *} {assign var="emphasis" value=""} {if $user_values.id==$user_id} {assign var=current_user_values value=$user_values} {assign var="emphasis" value="tx-nG6-pi1-line-emphasis"} {/if} {if ($user_values.cruser_id==$user_id) || $projects[key($projects)].is_admin || $projects[key($projects)].is_manager || ($user_values.id == $user_id ) || $is_ng6_admin } {else} {/if} {else} {/if} {if $user_values.id==$user_id || $user_values.cruser_id==$user_id } {else} {/if} {/foreach} {assign var="disabled" value=""} {assign var="nou_selection_btn" value="nou-selection-btn"} {assign var="multipleu_selection_btn" value="multipleu-selection-btn"} {if $projects[key($projects)].is_admin || $projects[key($projects)].is_manager} {elseif $current_user_values.id==$user_id} {assign var="disabled" value="disabled"} {if $current_user_values.right_id == '0'} {assign var="nou_selection_btn" value=""} {/if} {assign var="multipleu_selection_btn" value=""} {/if}
Login Last login Creator Last name First name Email Right
{* If the current user is superadmin, it is allowed to update anyone's password. *} {if $is_ng6_superadmin}
{$user_values.username} {$user_values.lastlogin} {$user_values.cruser_name} {$user_values.last_name} {$user_values.first_name} {$user_values.email} {$user_values.last_name} {$user_values.first_name} {$user_values.email} {if $user_values.right_id=='2' && !$projects[key($projects)].is_admin} {else} {if ($projects[key($projects)].is_admin && $user_values.id!=$user_id) || ($projects[key($projects)].is_manager && $user_values.id!=$user_id && $user_values.right_id!='2')} {assign var="disabled" value=""} {else} {assign var="disabled" value="disabled"} {/if} {/if}
With selection :
{/if} {include file='comments.tpl' comments=$comments tab_id=$comment_tab add_new_comment=$projects[key($projects)].is_admin user_id=$user_id }
{* If multiple projects have to be displayed *} {else} {* Find out if the current user is super user of a project *} {assign var="is_at_least_admin_of_1_project" value=false} {foreach from=$projects key=project_id item=project_values} {if $project_values.is_admin && !$is_at_least_admin_of_1_project} {assign var="is_at_least_admin_of_1_project" value=true} {elseif !$is_at_least_admin_of_1_project} {assign var="is_at_least_admin_of_1_project" value=false} {/if} {/foreach} {* Then display the table *}

Projects list you can access

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