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
vidjil
vidjil
Commits
ccc5b260
Commit
ccc5b260
authored
Sep 07, 2017
by
Ryan Herbert
Browse files
sample_set.py, sample_set/index.html decorate sample tags
parent
cd1c6133
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/sample_set.py
View file @
ccc5b260
...
...
@@ -120,6 +120,7 @@ def index():
)
)
tag_decorator
=
TagDecorator
(
get_tag_prefix
())
query_pre_process
=
db
(
db
.
pre_process
.
id
>
0
).
select
()
pre_process_list
=
{}
for
row
in
query_pre_process
:
...
...
@@ -140,7 +141,8 @@ def index():
analysis_file
=
analysis_file
,
analysis_filename
=
analysis_filename
,
sample_type
=
db
.
sample_set
[
request
.
vars
[
"id"
]].
sample_type
,
config
=
config
)
config
=
config
,
tag_decorator
=
tag_decorator
)
## return a list of generic sample_sets
def
all
():
...
...
server/web2py/applications/vidjil/views/sample_set/index.html
View file @
ccc5b260
...
...
@@ -82,7 +82,11 @@
{{if row.sequence_file.network:}}(N){{pass}}
</td>
<td>
{{if row.sequence_file.sampling_date
<>
None:}} {{=row.sequence_file.sampling_date}} {{pass}}
</td>
<td>
{{=row.sequence_file.info}}
</td>
<td>
{{=XML(tag_decorator.decorate_text(row.sequence_file.info, 'tag', 'sequence_file', '/sample_set/custom'),
sanitize=True,
permitted_tags=['a'],
allowed_attributes={'a':['class', 'href', 'onclick', 'data-sample-type', 'data-linkable-type', 'data-linkable-name']}
)}}
</td>
<td
{{
if
row.sequence_file.data_file =
=
None
:
}}
{{=
XML
("
class=
'inactive'
title=
'file is missing'
")}}
{{
pass
}}
>
{{=vidjil_utils.format_size(row.sequence_file.size_file)}}
</td>
{{ has_pre_process = row.sequence_file.pre_process_id != None}}
...
...
Write
Preview
Supports
Markdown
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