Commit eb1f934e authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Fix execution history duration javascript

parent 6a75696a
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
<td>{{ e[1].name }}</td> <td>{{ e[1].name }}</td>
<td>{{ e[1].status }}</td> <td>{{ e[1].status }}</td>
<td><script>format_timestamp({{ e[1].time_scheduled.timestamp() }})</script></td> <td><script>format_timestamp({{ e[1].time_scheduled.timestamp() }})</script></td>
<td><script>document.write(moment.duration({{ e[1].time_finished.timestamp() }} - {{ e[1].time_scheduled.timestamp() }}).humanize())</script></td> <td><script>document.write(moment.duration({{ e[1].time_finished.timestamp() }} - {{ e[1].time_scheduled.timestamp() }}, "seconds").humanize())</script></td>
{% if e[1].time_started != None %} {% if e[1].time_started != None %}
<td><a href="{{ url_for('api.history_logs_get', execution_id=e[1].id) }}">Logs</a></td> <td><a href="{{ url_for('api.history_logs_get', execution_id=e[1].id) }}">Logs</a></td>
{% endif %} {% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment