Move breadcrumb rendering from individual page templates into the core topbar. Each page now sets $breadcrumbs in its action .php file; the topbar renders it automatically via the shared partial. - Remove global back/forward buttons and app-nav-history.js component - Remove Alt+Arrow keyboard shortcuts for history navigation - Render breadcrumb in topbar-left section (replaces button area) - Clean up breadcrumb CSS: context-neutral base (flex, no margin) - Recalculate sticky titlebar offset in details container - Migrate all 41 pages (core + helpdesk, audit, addressbook, api-docs) - Add missing breadcrumbs to addressbook detail view - Update architecture contract tests (nav-history references removed) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
21 lines
581 B
PHP
21 lines
581 B
PHP
<?php
|
|
|
|
use MintyPHP\Module\Audit\AuditAuthorizationPolicy;
|
|
use MintyPHP\Module\Audit\Service\ApiAuditService;
|
|
use MintyPHP\Module\Audit\Support\AuditPageHelper;
|
|
|
|
$auditLog = AuditPageHelper::findOrRedirect(
|
|
AuditAuthorizationPolicy::ABILITY_API_AUDIT_VIEW,
|
|
ApiAuditService::class,
|
|
'audit/api-audit',
|
|
'API audit entry not found',
|
|
'api_audit_not_found',
|
|
'View API audit entry',
|
|
$id ?? null
|
|
);
|
|
$breadcrumbs = [
|
|
['label' => t('Home'), 'path' => 'admin'],
|
|
['label' => t('API audit logs'), 'path' => 'audit/api-audit'],
|
|
['label' => t('View')],
|
|
];
|