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

adding failed and processing time columns to dashboard. Layout change.

parent b6f1f2e8
No related branches found
No related tags found
3 merge requests!83Master,!82Master,!78Dev nico
......@@ -67,8 +67,16 @@ def convert_logentries_to_html(log_entries):
return results
def convert_list_of_dicts_to_html(my_list):
def convert_list_of_dicts_to_html(my_blob):
results = ""
my_list = []
# if the parameter is not a list, then make it a list first
if not isinstance(my_blob, list):
my_list.append(my_blob)
else:
my_list = my_blob
try:
for my_dict in my_list:
# iterate through the dict of key/values
......
......@@ -8,12 +8,12 @@
<div class="card">
<div class="card-body">
<h4>Dashboard</h4>
&nbsp;
<table class="table table-striped">
{{ results_tasks | safe }}
</table>
&nbsp;
&nbsp;
<table class="table table-striped">
{{ results_logs | safe }}
</table>
......
<table>
<input type="checkbox" data-on="Active Workflows" data-off="All Workflows" checked data-toggle="toggle" data-onstyle="warning" data-offstyle="primary" data-style="slow">
<input type="checkbox" data-on="Resources Visible" data-off="Resources Invisible" checked data-toggle="toggle" data-onstyle="primary" data-style="slow">
</table>
\ No newline at end of file
......@@ -25,6 +25,8 @@
<link rel="stylesheet" type="text/css" href="{% static 'taskdatabase/style.css' %}"/>
<link rel="icon" href="{% static 'favicon.ico' %}">
<link href="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/css/bootstrap4-toggle.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/gh/gitbrent/bootstrap4-toggle@3.6.1/js/bootstrap4-toggle.min.js"></script>
{% block extra_js %}{% endblock %}
</head>
......
......@@ -80,7 +80,7 @@
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
<p class="footer"> Version 1.0.0 (19 mar 2021 - 08:00)
<p class="footer"> Version 1.0.0 (19 mar 2021 - 09:00)
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment