-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcbb087
commit c8dea63
Showing
1 changed file
with
48 additions
and
45 deletions.
There are no files selected for viewing
93 changes: 48 additions & 45 deletions
93
app/grandchallenge/algorithms/templates/algorithms/job_status_detail.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,55 @@ | ||
<span class="badge badge-{{ object.status_context }}"> | ||
{% if object.animate %} | ||
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> | ||
{% endif %} | ||
{{ object.get_status_display }}{% if object.status == object.SUCCESS and object.stderr %}, | ||
with warnings{% endif %} | ||
</span> | ||
|
||
{% if object.error_message %} | ||
<div> | ||
<span class="badge badge-{{ object.status_context }}"> | ||
{% if object.animate %} | ||
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span> | ||
{% endif %} | ||
{{ object.get_status_display }}{% if object.status == object.SUCCESS and object.stderr %}, | ||
with warnings{% endif %} | ||
</span> | ||
|
||
<div class="modal" | ||
id="errorInfoModal-{{ object.pk }}" | ||
tabindex="-1" | ||
role="dialog" | ||
aria-labelledby="statusfoModalTitle" | ||
aria-hidden="true" | ||
> | ||
<div class="modal-dialog modal-dialog-centered modal-lg" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title"> | ||
Error Message | ||
</h5> | ||
<button type="button" class="close" data-dismiss="modal" | ||
aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="text-left modal-body"> | ||
{{ object.error_message }} | ||
</div> | ||
<div class="modal-footer"> | ||
<a class="btn btn-primary" href="{{ object.get_absolute_url }}"> | ||
<i class="fa fa-info-circle mr-1"></i>View Result Details | ||
</a> | ||
{% if object.error_message %} | ||
|
||
<div class="modal" | ||
id="errorInfoModal-{{ object.pk }}" | ||
tabindex="-1" | ||
role="dialog" | ||
aria-labelledby="statusfoModalTitle" | ||
aria-hidden="true" | ||
> | ||
<div class="modal-dialog modal-dialog-centered modal-lg" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title"> | ||
Error Message | ||
</h5> | ||
<button type="button" class="close" data-dismiss="modal" | ||
aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="text-left modal-body"> | ||
{{ object.error_message }} | ||
</div> | ||
<div class="modal-footer"> | ||
<a class="btn btn-primary" href="{{ object.get_absolute_url }}"> | ||
<i class="fa fa-info-circle mr-1"></i>View Result Details | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<a href="#errorInfoModal-{{ object.pk }}" | ||
data-toggle="modal" | ||
data-target="#errorInfoModal-{{ object.pk }}" | ||
class="badge badge-light text-decoration-none" | ||
> | ||
<i class="fa fa-fw fa-eye"></i> | ||
{{ object.error_message | truncatechars:16 }} | ||
</a> | ||
</div> | ||
<div> | ||
<a href="#errorInfoModal-{{ object.pk }}" | ||
data-toggle="modal" | ||
data-target="#errorInfoModal-{{ object.pk }}" | ||
class="badge badge-light text-decoration-none" | ||
> | ||
<i class="fa fa-fw fa-eye"></i> | ||
{{ object.error_message | truncatechars:16 }} | ||
</a> | ||
</div> | ||
|
||
{% endif %} | ||
{% endif %} | ||
</div> |