Skip to content

Commit 44c744c

Browse files
authored
Added fix for some labels in the new exception page (#1309)
1 parent 53f10c6 commit 44c744c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

modules/system/controllers/eventlogs/_field_details.php

+11-5
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,21 @@ function getOrderedExceptionList(array $value): array
301301
</table>
302302
<?php endif; ?>
303303

304-
<div class="btn-group" role="group" aria-label="Basic example">
304+
<div class="btn-group" role="group" aria-label="Exception context">
305305
<button type="button" disabled class="btn btn-sm btn-secondary">Context</button>
306306
<button type="button" disabled class="btn btn-sm btn-primary"><?= $value['environment']['context'] ?></button>
307307
</div>
308-
<div class="btn-group" role="group" aria-label="Basic example">
308+
<div class="btn-group" role="group" aria-label="Exception APP_ENV">
309309
<button type="button" disabled class="btn btn-sm btn-secondary">Environment</button>
310310
<button type="button" disabled class="btn btn-sm btn-primary"><?= $value['environment']['env'] ?></button>
311311
</div>
312-
<div class="btn-group" role="group" aria-label="Basic example">
312+
<?php if (strtolower($value['environment']['context']) === 'web'): ?>
313+
<div class="btn-group" role="group" aria-label="Exception encountered in Backend">
314+
<button type="button" disabled class="btn btn-sm btn-secondary">Backend</button>
315+
<button type="button" disabled class="btn btn-sm btn-primary"><?= $value['environment']['backend'] ? 'true' : 'false' ?></button>
316+
</div>
317+
<?php endif; ?>
318+
<div class="btn-group" role="group" aria-label="Exception encountered in unit test">
313319
<button type="button" disabled class="btn btn-sm btn-secondary">Testing</button>
314320
<button type="button" disabled class="btn btn-sm btn-primary"><?= $value['environment']['testing'] ? 'true' : 'false' ?></button>
315321
</div>
@@ -332,11 +338,11 @@ function getOrderedExceptionList(array $value): array
332338
<p class="message-log"><?= $exception['message'] ?></p>
333339

334340
<div>
335-
<div class="btn-group" role="group" aria-label="Basic example">
341+
<div class="btn-group" role="group" aria-label="Exception index">
336342
<button type="button" disabled class="btn btn-sm btn-secondary">Exception</button>
337343
<button type="button" disabled class="btn btn-sm btn-primary">#<?= $index ?></button>
338344
</div>
339-
<div class="btn-group" role="group" aria-label="Basic example">
345+
<div class="btn-group" role="group" aria-label="Exception code">
340346
<button type="button" disabled class="btn btn-sm btn-secondary">Code</button>
341347
<button type="button" disabled class="btn btn-sm btn-primary"><?= $exception['code'] ?></button>
342348
</div>

0 commit comments

Comments
 (0)