File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 5
5
#
6
6
# The full license is in the file LICENSE, distributed with this software.
7
7
# -----------------------------------------------------------------------------
8
- from os .path import join
8
+ from os .path import join , relpath
9
9
10
10
from tornado .web import authenticated
11
11
from tornado .escape import url_escape
12
12
import pandas as pd
13
13
14
+ from qiita_core .qiita_settings import qiita_config
14
15
from qiita_pet .handlers .util import to_int
15
16
from qiita_pet .handlers .base_handlers import BaseHandler
16
17
from qiita_db .util import (get_files_from_uploads_folders , get_mountpoint ,
@@ -79,6 +80,13 @@ def get(self):
79
80
fp = res ['creation_job' ].parameters .values ['sample_sheet' ]
80
81
res ['creation_job_filename' ] = fp ['filename' ]
81
82
res ['creation_job_filename_body' ] = fp ['body' ]
83
+ summary = None
84
+ if res ['creation_job' ].outputs :
85
+ summary = relpath (
86
+ # [0] is the id, [1] is the filepath
87
+ res ['creation_job' ].outputs ['output' ].html_summary_fp [1 ],
88
+ qiita_config .base_data_dir )
89
+ res ['creation_job_artifact_summary' ] = summary
82
90
83
91
self .render ('study_ajax/prep_summary.html' , ** res )
84
92
Original file line number Diff line number Diff line change 435
435
< span id ="prep-name-span "> {{name}}</ span > - ID {{prep_id}} ({{data_type}})
436
436
{% if user_level in ('admin', 'wet-lab admin') and creation_job is not None %}
437
437
< a class ="btn btn-default " download ="{{creation_job_filename}} " href ="data:text/plain;charset=utf-8,{{creation_job_filename_body}} "> < span class ="glyphicon glyphicon-download-alt "> </ span > SampleSheet</ a >
438
+ {% if creation_job_artifact_summary is not None %}
439
+ < a class ="btn btn-default " target ="_blank " href ="{% raw qiita_config.portal_dir %}/artifact/html_summary/{{creation_job_artifact_summary}} "> < span class ="glyphicon glyphicon-download-alt "> </ span > Creation Job Output</ a >
440
+ {% end %}
438
441
{% end %}
439
442
< a class ="btn btn-default " data-toggle ="modal " data-target ="#update-prep-name "> < span class ="glyphicon glyphicon-pencil "> </ span > Edit name</ a >
440
443
< a class ="btn btn-default " href ="{% raw qiita_config.portal_dir %}/download/{{download_prep_id}} "> < span class ="glyphicon glyphicon-download-alt "> </ span > Prep info</ a >
You can’t perform that action at this time.
0 commit comments