diff --git a/Templates/OpenBench/pipeline.html b/Templates/OpenBench/pipeline.html new file mode 100644 index 0000000..771cf79 --- /dev/null +++ b/Templates/OpenBench/pipeline.html @@ -0,0 +1,141 @@ +{% extends "OpenBench/base.html" %} + +{% block page_head %} +
+ Pipelines +

{{ pipeline.name }}

+

By {{ pipeline.author|capfirst }}

+
+ +
+ + {% if not pipeline.enabled %}Paused{% endif %} + + {% if can_manage %} + + {% if running %} + Open the running run + {% elif pipeline.enabled and usable %} +
+ {% csrf_token %} + +
+ {% else %} + + {% endif %} + +
+ {% csrf_token %} + +
+ +
+ {% csrf_token %} + +
+ + {% endif %} + +
+{% endblock %} + +{% block content %} + + {% if usable %} + +
+

Flow

+
{{ svg|safe }}
+
+ + {% else %} + + + + {% endif %} + + {% if issues %} + +
+
+

Checks

+ {{ issues|length }} +
+ +
+ + {% endif %} + + {% if steps %} + +
+
+

Steps

+ {{ steps|length }} +
+ + + + + + + + {% for step in steps %} + + + + + + + {% endfor %} +
StepKindRunsWhat happens next
{{ step.name }}{% if step.start %} Starts here{% endif %}{{ step.kind }}{{ step.what }} {{ step.speed }} + {% for line in step.leads %}
{{ line }}
{% empty %}The pipeline ends here{% endfor %} +
+
+ + {% endif %} + +
+
+

Runs

+ {{ runs|length }} +
+ {% if runs %} + + + + + + + + {% for run in runs %} + + + + + + + {% endfor %} +
RunStartedByStatus
Run {{ run.id }}{{ run.started|date:"U" }}{{ run.starter|capfirst }}{{ run.state.label }}
+ {% else %} +
+ +

This pipeline has not run yet.

+ {% if can_manage and pipeline.enabled and usable %}

Use Start run to begin with the first step.

{% endif %} +
+ {% endif %} +
+ +{% endblock %} diff --git a/Templates/OpenBench/pipeline_run.html b/Templates/OpenBench/pipeline_run.html new file mode 100644 index 0000000..4a01bbe --- /dev/null +++ b/Templates/OpenBench/pipeline_run.html @@ -0,0 +1,86 @@ +{% extends "OpenBench/base.html" %} + +{% load static %} + +{% block scripts %} + +{% endblock %} + +{% block page_head %} +
+ {{ pipeline.name }} +

Run {{ run.id }}

+
+{% endblock %} + +{% block content %} + +
+ +
+ + {{ state.label }} + + {% if can_manage and live %} +
+ {% csrf_token %} + +
+ {% endif %} + +
+ +
+
Started
{{ run.started|date:"U" }}
+
Started by
{{ run.starter|capfirst }}
+
Tests created
{{ rows|length }}
+
Pipeline
{{ pipeline.name }}
+
+ +
+

Path taken

+
{{ svg|safe }}
+
+ +
+
+

Tests

+ {{ rows|length }} +
+ + + + + + + + {% for row in rows %} + + + + + + + {% endfor %} +
StepHow it startedStatusTest
{{ row.name }}{{ row.after }} + {{ row.state.label }} + {% if row.waiting %}
Waiting for an approver to approve the test
{% endif %} + {% if row.step.message %}
{{ row.step.message }}
{% endif %} +
{% if row.url %}Test {{ row.step.test_id }}{% else %}Not created{% endif %}
+
+ + {% if run.notes %} +
+

Why it went this way

+ +
+ {% endif %} + +
+ +{% endblock %}