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
cd1b4d94
Commit
cd1b4d94
authored
Feb 24, 2014
by
Penom Nom
Browse files
Hide directories in download tab-pane.
parent
8c152380
Changes
2
Show whitespace changes
Inline
Side-by-side
ui/nG6/pi1/analyzes/AnalysisTemplate.tpl
View file @
cd1b4d94
...
...
@@ -61,7 +61,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{
assign
var
=
"nb_files"
value
=
0
}
{
$dir
=
$data_folder
|
cat
:
$analyse.directory
}
{
foreach
$dir
|
scandir
as
$file
}
{
if
$file
!=
"."
and
$file
!=
""
and
$file
!=
".."
and
(
$file
|
substr
:-
strlen
(
".png"
))
!=
".png"
}
{
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
)
}
{
$nb_files
=
$nb_files
+
1
}
{/
if
}
{/
foreach
}
...
...
@@ -72,8 +73,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{
else
}
<ul>
{
foreach
$dir
|
scandir
as
$file
}
{
if
$file
!=
"."
and
$file
!=
""
and
$file
!=
".."
and
(
$file
|
substr
:-
strlen
(
".png"
))
!=
".png"
}
{
$link
=((
'fileadmin'
|
cat
:
$analyse.directory
)|
cat
:
'/'
)|
cat
:
$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
)
}
<li
class=
"filelist"
><a
href=
"
{
$link
}
"
>
{
$file
}
</a>
</li>
{/
if
}
{/
foreach
}
...
...
ui/nG6/pi1/analyzes/MothurOTUAnalysis.tpl
View file @
cd1b4d94
...
...
@@ -248,22 +248,27 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
<div
class=
"tab-pane fade"
id=
"downloads"
>
{
block
name
=
download
}
{
if
$nb_files
!=
0
}
<p><ul>
{
$dir
=
$data_folder
|
cat
:
$analyse.directory
}
{
assign
var
=
"nb_files"
value
=
0
}
{
$dir
=
$data_folder
|
cat
:
$analyse.directory
}
{
foreach
$dir
|
scandir
as
$file
}
{
if
$file
!=
"."
and
$file
!=
""
and
$file
!=
".."
and
(
$file
|
substr
:-
strlen
(
".png"
))
!=
".png"
}
{
$link
=((
'fileadmin'
|
cat
:
$analyse.directory
)|
cat
:
'/'
)|
cat
:
$file
}
<li
class=
"filelist"
><a
href=
"
{
$link
}
"
>
{
$file
}
</a>
</li>
{
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
)
}
{
$nb_files
=
$nb_files
+
1
}
{/
if
}
{/
foreach
}
</ul></p>
{
else
}
{
if
$nb_files
==
0
}
<div
class=
"alert alert-info"
>
Results folder not synchronized yet...
</div>
{
else
}
<ul>
{
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
)
}
<li
class=
"filelist"
><a
href=
"
{
$link
}
"
>
{
$file
}
</a>
</li>
{/
if
}
{/
foreach
}
</ul>
{/
if
}
{/
block
}
</div>
...
...
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