Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
ng6
Commits
b2a219ec
Commit
b2a219ec
authored
Aug 29, 2019
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/nG6/pi1/analyzes/AnalysisTemplate.tpl
View file @
b2a219ec
...
...
@@ -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
)
}
...
...
ui/nG6/pi1/run_view.tpl
View file @
b2a219ec
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment