Commit b2a219ec authored by Romain Therville's avatar Romain Therville 🐭
Browse files

Issue#116

If at least one analyse or run file is found, the retention limit is
display above the list.
parent f101e534
......@@ -126,6 +126,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
{else}
<ul>
<div class="alert alert-info" name="retention-info">
Retention limit : {$analyse.retention_date|date_format}
</div>
{foreach $dir|scandir as $file}
{assign var="link" value=(('fileadmin'|cat:$analyse.directory)|cat:'/')|cat:$file}
{if $file != "." and $file != "" and $file != ".." and ($file|substr:-strlen(".png")) != ".png" and !is_dir($link)}
......
......@@ -121,7 +121,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 limit : {$runs[key($runs)].retention_date|date_format}
</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}
......
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