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

bonus link in dashboard

parent 8770d9e6
No related branches found
No related tags found
3 merge requests!74Acceptance,!73Master,!64Dev nico
......@@ -202,11 +202,10 @@ def construct_link(request, status, workflow_id, count):
link = str(count)
try:
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
if settings.DEV == False:
url = request.build_absolute_uri('/atdb/tasks') + query
else:
url = "https://" + request.get_host() + '/atdb/tasks' + query
link = '<a href="' + url + '" target="_blank">' + str(count) + "</a>"
except:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment