diff options
| author | Frederick Muriuki Muriithi | 2025-12-16 13:30:46 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-12-16 13:32:36 -0600 |
| commit | 98993dc0be542b377e62c97031f29f63e83f7ed4 (patch) | |
| tree | 4ee9cb7a6e467b65f4e7d001fd40cc821a972466 /uploader/phenotypes/views.py | |
| parent | e94474760d20a145a9242680ca908579f2729efc (diff) | |
| download | gn-uploader-98993dc0be542b377e62c97031f29f63e83f7ed4.tar.gz | |
Add "Streamlined UI" templates for phenotype upload sub-features.
Diffstat (limited to 'uploader/phenotypes/views.py')
| -rw-r--r-- | uploader/phenotypes/views.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py index c4fd7fd..364fc79 100644 --- a/uploader/phenotypes/views.py +++ b/uploader/phenotypes/views.py @@ -513,7 +513,9 @@ def job_status( job = jobs.job(rconn, jobs.jobsnamespace(), str(job_id)) except jobs.JobNotFound as _jnf: job = None - return render_template("phenotypes/job-status.html", + + _sui = "sui-" if bool(request.args.get("streamlined_ui")) else "" + return render_template(f"phenotypes/{_sui}job-status.html", species=species, population=population, dataset=dataset, @@ -593,7 +595,8 @@ def review_job_data( for filetype,meta in metadata.items() } _job_metadata = json.loads(job["job-metadata"]) - return render_template("phenotypes/review-job-data.html", + _sui = "sui-" if bool(request.args.get("streamlined_ui")) else "" + return render_template(f"phenotypes/{_sui}review-job-data.html", species=species, population=population, dataset=dataset, @@ -983,7 +986,8 @@ def load_data_success( _publication["Authors"], (_publication["Title"] or "")) if item != "") - return render_template("phenotypes/load-phenotypes-success.html", + _sui="sui-" if request.args.get("streamlined_ui") else "" + return render_template(f"phenotypes/{_sui}load-phenotypes-success.html", species=species, population=population, dataset=dataset, |
