Skip to content
Snippets Groups Projects
Commit 8770d9e6 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

bonus link in dashboard

parent ee2bf7f3
No related branches found
No related tags found
3 merge requests!74Acceptance,!73Master,!63bonus link in dashboard
......@@ -2,6 +2,7 @@ from atdb.settings.base import *
import os
# SECURITY WARNING: don't run with debug turned on in production!
DEV = True
DEBUG = True
ALLOWED_HOSTS = ["*"]
......
......@@ -2,6 +2,7 @@ from atdb.settings.base import *
import os
# Import production setting must remain False.
DEV = False
try:
DEBUG = os.environ['DEBUG']
except:
......
......@@ -201,10 +201,12 @@ def aggregate_resources_tasks():
def construct_link(request, status, workflow_id, count):
link = str(count)
try:
query = "?status=" + status + "&workflow=" + str(workflow_id)
url = "https://" +request.build_absolute_uri('/atdb/tasks') + query
if not "http" in url:
url = "https://" + url
query = "?status=" + status + "&workflow__id=" + str(workflow_id)
#if settings.DEV == False:
# url = "https://" +request.build_absolute_uri('/atdb/tasks') + query
#else:
#TODO: this doesn't work yet in production
url = request.scheme + "://" + request.get_host() + '/atdb/tasks' + query
link = '<a href="' + url + '" target="_blank">' + str(count) + "</a>"
except:
pass
......
......@@ -80,7 +80,7 @@
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
<p class="footer"> Version 1.0.0 (12 mar 2021 - 17:00)
<p class="footer"> Version 1.0.0 (12 mar 2021 - 21:00)
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment