Commit ccc5b260 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

sample_set.py, sample_set/index.html decorate sample tags

parent cd1c6133
......@@ -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():
......
......@@ -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}}
......
Supports Markdown
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