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>
25 lines
746 B
PHP
25 lines
746 B
PHP
<?php
|
|
|
|
use MintyPHP\Buffer;
|
|
use MintyPHP\Router;
|
|
use MintyPHP\Support\Flash;
|
|
use MintyPHP\Support\Guard;
|
|
|
|
Guard::requireLogin();
|
|
Guard::requireAbility(\MintyPHP\Service\Access\OperationsAuthorizationPolicy::ABILITY_ADMIN_MAIL_LOG_VIEW);
|
|
|
|
$mailLogId = (int) ($id ?? 0);
|
|
$mailLogService = app(\MintyPHP\Service\Mail\MailLogService::class);
|
|
$mailLog = $mailLogId > 0 ? $mailLogService->find($mailLogId) : null;
|
|
if (!$mailLog) {
|
|
Flash::error('Mail log not found', 'admin/mail-log', 'mail_log_not_found');
|
|
Router::redirect('admin/mail-log');
|
|
}
|
|
|
|
Buffer::set('title', t('View mail log'));
|
|
$breadcrumbs = [
|
|
['label' => t('Home'), 'path' => 'admin'],
|
|
['label' => t('Mail logs'), 'path' => 'admin/mail-log'],
|
|
['label' => t('View')],
|
|
];
|