From f1886a3d651140325c1b1818df35f3bc6e017399 Mon Sep 17 00:00:00 2001 From: ronjakrg Date: Mon, 11 Nov 2024 13:56:08 +0100 Subject: [PATCH 1/4] changed href of github logo --- ui/static/templates/navbar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/static/templates/navbar.html b/ui/static/templates/navbar.html index 76be17248..e85afdff8 100644 --- a/ui/static/templates/navbar.html +++ b/ui/static/templates/navbar.html @@ -13,7 +13,7 @@ {% if used_memory %} Memory: {{ used_memory }}    {%endif%} - + Logo From 726b415eea1e7689abf85d2e483b4956d7f2c7e8 Mon Sep 17 00:00:00 2001 From: ronjakrg Date: Mon, 11 Nov 2024 14:43:07 +0100 Subject: [PATCH 2/4] added hint after successfull workflow export --- ui/runs/views.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ui/runs/views.py b/ui/runs/views.py index b95be7568..3d7c87bb4 100644 --- a/ui/runs/views.py +++ b/ui/runs/views.py @@ -1,3 +1,4 @@ +import os import io import tempfile import traceback @@ -17,6 +18,7 @@ ) from django.shortcuts import render from django.urls import reverse +from django.conf import settings from protzilla.run import Run, get_available_run_names from protzilla.run_helper import log_messages @@ -386,6 +388,14 @@ def export_workflow(request: HttpRequest, run_name: str): run = active_runs[run_name] requested_workflow_name = request.POST["name"] run._workflow_export(requested_workflow_name) + display_message( + { + "level": 20, + "msg": f"Workflow '{requested_workflow_name}' was exported successfully.
You can view it here: {os.path.join(settings.BASE_DIR, 'user_data', 'workflows')}", + }, + request, + ) + return HttpResponseRedirect(reverse("runs:detail", args=(run_name,))) From 939a67c6fe4f729af92a4476e86e67853e949984 Mon Sep 17 00:00:00 2001 From: ronjakrg Date: Tue, 12 Nov 2024 12:17:18 +0100 Subject: [PATCH 3/4] added back button --- ui/static/templates/databases.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/static/templates/databases.html b/ui/static/templates/databases.html index 8fc96ead9..698abd0a1 100644 --- a/ui/static/templates/databases.html +++ b/ui/static/templates/databases.html @@ -35,6 +35,12 @@ {% endfor %} {% endif %} + +
+ +
To download a database, go to uniprot.org/uniprotkb. A tutorial is available in the PROTzilla documentation. From a211147ca114334810fb7018a2d0810baf0fac82 Mon Sep 17 00:00:00 2001 From: ronjakrg Date: Tue, 12 Nov 2024 16:31:02 +0100 Subject: [PATCH 4/4] added requested changes --- ui/static/templates/databases.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/static/templates/databases.html b/ui/static/templates/databases.html index 698abd0a1..00dbefdca 100644 --- a/ui/static/templates/databases.html +++ b/ui/static/templates/databases.html @@ -37,9 +37,7 @@ {% endif %}
- + Back