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

bonus link in dashboard

parent de6a45a0
No related branches found
No related tags found
3 merge requests!74Acceptance,!73Master,!62bonus link in dashboard
...@@ -202,7 +202,7 @@ def construct_link(request, status, workflow_id, count): ...@@ -202,7 +202,7 @@ def construct_link(request, status, workflow_id, count):
link = str(count) link = str(count)
try: try:
query = "?status=" + status + "&workflow=" + str(workflow_id) query = "?status=" + status + "&workflow=" + str(workflow_id)
url = request.build_absolute_uri('/atdb/tasks') + query url = "https://" +request.build_absolute_uri('/atdb/tasks') + query
if not "http" in url: if not "http" in url:
url = "https://" + url url = "https://" + url
link = '<a href="' + url + '" target="_blank">' + str(count) + "</a>" link = '<a href="' + url + '" target="_blank">' + str(count) + "</a>"
......
...@@ -27,7 +27,7 @@ class TaskTable(tables.Table): ...@@ -27,7 +27,7 @@ class TaskTable(tables.Table):
status = StatusColumn() status = StatusColumn()
creationtime = tables.Column(verbose_name='CreationTime') creationtime = tables.Column(verbose_name='CreationTime')
buttons = tables.TemplateColumn(verbose_name='Actions', buttons = tables.TemplateColumn(verbose_name='Set Status',
template_name='query/status_buttons_per_row.html', template_name='query/status_buttons_per_row.html',
orderable=False) # orderable not sortable orderable=False) # orderable not sortable
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment