Commit 4ce3e172 authored by Gerald Salin's avatar Gerald Salin

Merge branch 'issue#116' into 'master'

Issue#116

See merge request !34
parents d3d2f507 4806b4d1
......@@ -118,10 +118,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{/foreach}
{if $nb_files == 0}
<div class="alert alert-info">
Results folder not synchronized yet...
{if $analyse.data_state=="purged"}
The data have been purged. (Retention limit : {$analyse.retention_date|date_format})
{else}
Results folder not synchronized yet...
{/if}
</div>
{else}
<ul>
<div class="alert alert-info" name="retention-info">
Retention date is {$analyse.retention_date|date_format}. After this deadline, these data will no longer be available. Only metadata and quality control results will remain in NG6.
</div>
{foreach $dir|scandir as $file}
{assign var="link" value=(('fileadmin'|cat:'/'|cat:$analyse.directory)|cat:'/')|cat:$file}
{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png" and !is_dir($link)}
......
......@@ -122,7 +122,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div class="tab-pane fade" id="downloads">
{$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}
<ul>
{if $nb_files >= 1}
<div class="alert alert-info" name="retention-info">
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.
</div>
{/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}
......@@ -133,7 +145,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</ul>
{if $nb_files == 0}
<div class="alert alert-info">
Results folder not synchronized yet...
{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}
</div>
{/if}
</div>
......
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