blob: 8bf804ae4cb4ec7b98c171fd86e7313414499672 [file] [log] [blame]
<!DOCTYPE html>
<html xmlns:th="https://www.thymeleaf.org">
<head>
</head>
<body>
<div th:fragment="messagesList" id="workflowMessages">
<h4 th:if="not ${workflowStatus.messages.isEmpty()}">Processing log:</h4>
<ul>
<li th:text="${msg}" th:each="msg : ${workflowStatus.messages}">Message</li>
</ul>
<div
style="height:2em;"
th:if="${(!workflowStatus.done && workflowStatus.uuid != null)}">
<span id="flashMessage" class="flash"></span>
</div>
</div>
<div th:fragment="errorList" id="workflowErrors">
<div th:if="not ${workflowStatus.errors.isEmpty()}">
<ul>
<li th:text="${msg}" th:each="msg : ${workflowStatus.errors}" style="color:red;font-weight:bold;">Message</li>
</ul>
</div>
</div>
<div th:fragment="resultList" id="workflowResults">
<div th:if="not ${workflowStatus.results.isEmpty()} and ${workflowStatus.done}">
<h4>Workflow results:</h4>
<ul class="list-group">
<li th:each="result : ${workflowStatus.results}" class="list-group-item d-flex justify-content-between">
<p class="p-0 m-0 flex-grow-1" th:text="${result.key}">Result</p>
<a class="btn btn-primary btn-sm mr-1"
th:if="${not #strings.endsWith(result.value, 'zip')}"
th:href="@{/{uuid}/files/{resultValue}(uuid=${workflowStatus.uuid},resultValue=${result.value})}"
title="View the result in the browser"
data-toggle="tooltip"><i class="fas fa-eye"></i></a>
<a class="btn btn-secondary btn-sm"
th:href="@{/{uuid}/files/{resultValue}?download=true(uuid=${workflowStatus.uuid},resultValue=${result.value})}"
title="Download the processing result"
data-toggle="tooltip"><i class="fas fa-download"></i></a>
</li>
</ul>
<div class="row mt-4 mb-4">
<div class="col">
<a th:href="@{/{uuid}/delete(uuid=${workflowStatus.uuid})}"
class="btn btn-danger"
title="Delete the processing result"
data-toggle="tooltip">Delete</a>
<a th:href="@{/rest/{uuid}/download(uuid=${workflowStatus.uuid})}"
class="btn btn-success"
title="Download the processing result"
data-toggle="tooltip">Download</a>
<a th:href="@{/{uuid}/configdownload(uuid=${workflowStatus.uuid})}"
class="btn btn-secondary"
title="Download the workflow configuration JSON"
data-toggle="tooltip">Configuration JSON</a>
<a th:href="@{workflow?uuid={uuid}(uuid=${workflowStatus.uuid})}"
class="btn btn-info"
title="Copy the permanent link of this execution to the clipboard"
data-toggle="tooltip"
onclick="copy(this);return false;">Permanent Link</a>
<div>
<div
class="toast"
role="alert"
aria-live="assertive"
aria-atomic="true"
style="position:relative;bottom:60px;left:500px;">
<div class="toast-body">
Permanent link copied to clipboard
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>