diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-03-05 21:43:11 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-03-05 21:43:11 +0900 |
| commit | 1c5e25e307cc31016616a4970de834efc735ee31 (patch) | |
| tree | 7ff64112a1a235878a532ac89ab26a8b4f0394c2 /services/app | |
| parent | 9b32f59a34e19a3709af4d4a8cf50b047f1021e2 (diff) | |
| download | phperkaigi-2024-albatross-1c5e25e307cc31016616a4970de834efc735ee31.tar.gz phperkaigi-2024-albatross-1c5e25e307cc31016616a4970de834efc735ee31.tar.zst phperkaigi-2024-albatross-1c5e25e307cc31016616a4970de834efc735ee31.zip | |
change answer execution results to table
Diffstat (limited to 'services/app')
| -rw-r--r-- | services/app/templates/answer_view.html.twig | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/services/app/templates/answer_view.html.twig b/services/app/templates/answer_view.html.twig index 474f3d3..af46b9d 100644 --- a/services/app/templates/answer_view.html.twig +++ b/services/app/templates/answer_view.html.twig @@ -21,14 +21,18 @@ <div class="js-aggregated-execution-status-loading-indicator spinner-border text-primary spinner-border-sm" role="status"><span class="visually-hidden">Loading...</span></div> {% endif %} </div> - {% for ex in testcase_executions %} - <h3>テストケース {{ loop.index }}</h3> - <div> - ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="{{ ex.testcase_execution_id }}">{{ ex.status.label() }}</span> - {% if ex.status.showLoadingIndicator() %} - <div class="js-testcase-execution-status-loading-indicator spinner-border text-primary spinner-border-sm" role="status" data-testcase-execution-id="{{ ex.testcase_execution_id }}"><span class="visually-hidden">Loading...</span></div> - {% endif %} - </div> - {% endfor %} + <table> + {% for ex in testcase_executions %} + <tr> + <td>テストケース {{ loop.index }}</td> + <td> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="{{ ex.testcase_execution_id }}">{{ ex.status.label() }}</span> + {% if ex.status.showLoadingIndicator() %} + <span class="js-testcase-execution-status-loading-indicator spinner-border text-primary spinner-border-sm" role="status" data-testcase-execution-id="{{ ex.testcase_execution_id }}"><span class="visually-hidden">Loading...</span></span> + {% endif %} + </td> + </tr> + {% endfor %} + </table> <script type="module" src="{{ base_path() }}/assets/loading.js"></script> {% endblock %} |
