Skip to content

Commit 3eafc6f

Browse files
committed
Add more explicit text for the case when no jobId is found
1 parent 8387bfd commit 3eafc6f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

app/views/extractions/extractionsList.scala.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@
3535
</thead>
3636
<tbody>
3737
@for((job_id, eventList) <- group.allMsgs.toSeq.sortWith(_._1.stringify > _._1.stringify)) {
38-
<tr class="job-list-accordion-toggle clickable collapsed" data-toggle="collapse" data-target="#extraction-job-@job_id">
39-
<td width="35%" title="@job_id"><a class="btn btn-link">@eventList.head.start</a></td>
40-
<td width="60%" class="accordion-status" style="vertical-align:middle;">@eventList.head.status.replace("StatusMessage.start", "START").replace("StatusMessage.processing", "PROCESS").replace("StatusMessage.error", "ERROR")</td>
38+
<tr class="job-list-accordion-toggle clickable collapsed" data-toggle="collapse" @if(job_id.stringify != "") { data-target="#extraction-job-@job_id" } else { data-target="#extraction-job-other" }>
39+
<td width="35%" @if(job_id.stringify != "") { title="@job_id" } else { title="These events did not include a job ID. Please update this extractor to send back the value for jobid."}>
40+
<a class="btn btn-link">@if(job_id.stringify != "") { @eventList.head.start } else { No Job ID }</a>
41+
</td>
42+
<td width="60%" class="accordion-status" style="vertical-align: middle;">@eventList.head.status.replace("StatusMessage.start", "START").replace("StatusMessage.processing", "PROCESS").replace("StatusMessage.error", "ERROR")</td>
4143
</tr>
42-
<tr class="collapse" id="extraction-job-@job_id">
44+
<tr class="collapse" @if(job_id.stringify != "") { id="extraction-job-@job_id" } else { id="extraction-job-other" }>
45+
4346
<td colspan="3" class="extractor-log">
4447
<table class="table table-condensed">
4548
<thead>

0 commit comments

Comments
 (0)