diff options
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/metadata_edits.py | 4 | ||||
-rw-r--r-- | wqflask/wqflask/templates/edit_phenotype.html | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py index eb590408..730c2d44 100644 --- a/wqflask/wqflask/metadata_edits.py +++ b/wqflask/wqflask/metadata_edits.py @@ -250,7 +250,9 @@ def update_phenotype(dataset_id: str, name: str): } ) f.write(json.dumps(diff_data)) - flash("Sample-data has been successfully uploaded", "success") + url = url_for("metadata_edit.list_diffs") + flash(f"Sample-data has been successfully uploaded. \ +View the diffs <a href='{url}' target='_blank'>here</a>", "success") # Run updates: phenotype_ = { "pre_pub_description": data_.get("pre-pub-desc"), diff --git a/wqflask/wqflask/templates/edit_phenotype.html b/wqflask/wqflask/templates/edit_phenotype.html index ea480f4e..cd4f2b60 100644 --- a/wqflask/wqflask/templates/edit_phenotype.html +++ b/wqflask/wqflask/templates/edit_phenotype.html @@ -6,7 +6,7 @@ {% if messages %} {% for category, message in messages %} <div class="container-fluid bg-{{ category }}"> - <p>{{ message }}</p> + <p>{{ message|safe }}</p> </div> {% endfor %} {% endif %} |