From b800df51a8c838659b9e3dbc0675d8b246d9e8a1 Mon Sep 17 00:00:00 2001 From: Gal Margalit Date: Thu, 29 Oct 2015 14:33:51 +0000 Subject: [PATCH] UI: Execution Overview screen refactored * added new fields: creation time, time since creation, time since update, description, state info * added iso filter to time fields * refactored layout screenshot: http://pasteboard.co/1JWCLz3B.png Partially implements blueprint: mistral-dashboard-executions-screen Change-Id: I4eb20fd57895450e7d488efd4b4a55dcd5aaae06 --- .../templates/executions/detail.html | 37 ++++++++++++++----- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/mistraldashboard/executions/templates/executions/detail.html b/mistraldashboard/executions/templates/executions/detail.html index be9db09..b258b9a 100644 --- a/mistraldashboard/executions/templates/executions/detail.html +++ b/mistraldashboard/executions/templates/executions/detail.html @@ -1,28 +1,32 @@ {% extends 'base.html' %} {% load i18n %} -{% block title %}{% trans "Execution Overview" %}{% endblock %} +{% block title %}{% trans "Execution Details" %}{% endblock %} {% block page_header %}

- {% trans "Execution Overview: " %} - {{ execution.id|default:_("None") }} + {% trans "Execution Details" %}

{% endblock page_header %} {% block main %} {% load i18n sizeformat %} +
-

{% trans "Information" %}

+

{% trans "Overview" %}


{% trans "ID" %}
{{ execution.id|default:_("None") }}
-
{% trans "State" %}
-
{{ execution.state }}
{% if execution.description %}
{% trans "Description" %}
{{ execution.description }}
{% endif %} +
{% trans "State" %}
+
{{ execution.state }}
+ {% if execution.state_info %} +
{% trans "State Info" %}
+
{{ execution.state_info }}
+ {% endif %}
{% trans "Worflow Name" %}
-
{% trans "Updated At" %}
-
{{ execution.updated_at }}
+
+
{% trans "Creation Date" %}
+
{{ execution.created_at|parse_isotime}}
+
{% trans "Time Since Created" %}
+
{{ execution.created_at|parse_isotime|timesince }}
+
+
{% trans "Update Date" %}
+
{{ execution.updated_at|parse_isotime}}
+
{% trans "Time Since Updated" %}
+
{{ execution.updated_at|parse_isotime|timesince }}
+
+
+ +
+
+
{% trans "Params" %}
{{ execution.params }}
{% trans "Input" %}
@@ -40,4 +58,5 @@
{{ execution.output }}
-{% endblock %} + +{% endblock %} \ No newline at end of file