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>
55 lines
1.4 KiB
PHTML
55 lines
1.4 KiB
PHTML
<?php
|
|
|
|
use MintyPHP\Service\Ui\HotkeyService;
|
|
|
|
$hotkeyRows = HotkeyService::list();
|
|
?>
|
|
|
|
<div class="app-details-container">
|
|
<section>
|
|
|
|
<?php
|
|
$breadcrumbs = [
|
|
['label' => t('Home'), 'path' => 'admin'],
|
|
['label' => t('Keyboard shortcuts')],
|
|
];
|
|
?>
|
|
|
|
<?php
|
|
$listTitle = t('Keyboard shortcuts');
|
|
require templatePath('partials/app-list-titlebar.phtml');
|
|
?>
|
|
|
|
<div class="app-details">
|
|
<div class="app-details-body">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><?php e(t('Action')); ?></th>
|
|
<th><?php e(t('Mac')); ?></th>
|
|
<th><?php e(t('Windows')); ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($hotkeyRows as $row): ?>
|
|
<?php
|
|
$actionKey = trim((string) ($row['action_key'] ?? ''));
|
|
$mac = trim((string) ($row['mac'] ?? ''));
|
|
$win = trim((string) ($row['win'] ?? ''));
|
|
if ($actionKey === '' || $mac === '' || $win === '') {
|
|
continue;
|
|
}
|
|
?>
|
|
<tr>
|
|
<td><?php e(t($actionKey)); ?></td>
|
|
<td><kbd><?php e($mac); ?></kbd></td>
|
|
<td><kbd><?php e($win); ?></kbd></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|