Skip to content

Commit

Permalink
Add restrict to labels information to show view
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Oct 28, 2020
1 parent 314c43b commit 493e5df
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/resources/views/show/info-tab.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,13 @@
</tr>
</thead>
<tbody>
@if (Arr::has($job->params, 'oa_restrict_labels'))
<tr>
<tr>
@if (Arr::has($job->params, 'oa_restrict_labels'))
<td>Restricted to label IDs: {{implode(', ', Arr::get($job->params, 'oa_restrict_labels', []))}}</td>
</tr>
@else
<tr>
@else
<td>Using all annotations of this volume.</td>
</tr>
@endif
@endif
</tr>
</tbody>
</table>
@elseif($job->shouldUseKnowledgeTransfer())
Expand All @@ -86,7 +84,11 @@
$volumeId = Arr::get($job->params, 'kt_volume_id');
$v = Biigle\Volume::find($volumeId);
?>
<td>Using all annotations of volume {{$v ? $v->name : $volumeId}}.</td>
@if (Arr::has($job->params, 'kt_restrict_labels'))
<td>Restricted to label IDs: {{implode(', ', Arr::get($job->params, 'kt_restrict_labels', []))}} of volume {{$v ? $v->name : $volumeId}}.</td>
@else
<td>Using all annotations of volume {{$v ? $v->name : $volumeId}}.</td>
@endif
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 493e5df

Please sign in to comment.