eaa44052fd
Pressing the question-mark key (?) produces a pop-up listing the keyboard shortcuts. Pressing q whilst this window has focus closes it. I've provided crude translations for the additional ? and q shortcuts, obtained from Google Translate, but they should be checked by native speakers.
61 lines
3.3 KiB
PHP
61 lines
3.3 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width">
|
|
<link rel="icon" type="image/png" href="./assets/img/favicon.png">
|
|
<link rel="shortcut icon" href="favicon.ico">
|
|
<link rel="apple-touch-icon" href="./assets/img/touch-icon-iphone.png">
|
|
<link rel="apple-touch-icon" sizes="72x72" href="./assets/img/touch-icon-ipad.png">
|
|
<link rel="apple-touch-icon" sizes="114x114" href="./assets/img/touch-icon-iphone-retina.png">
|
|
<link rel="apple-touch-icon" sizes="144x144" href="./assets/img/touch-icon-ipad-retina.png">
|
|
<title><?= isset($title) ? Helper\escape($title) : 'miniflux' ?></title>
|
|
<link href="<?= Helper\css() ?>" rel="stylesheet" media="screen">
|
|
<script type="text/javascript" src="./assets/js/app.js?v<?= filemtime('assets/js/app.js') ?>" defer></script>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<nav>
|
|
<a class="logo" href="?">mini<span>flux</span></a>
|
|
<ul>
|
|
<li <?= isset($menu) && $menu === 'unread' ? 'class="active"' : '' ?>>
|
|
<a href="?action=unread"><?= t('unread') ?> <span id="nav-counter"><?= isset($nb_unread_items) ? '('.$nb_unread_items.')' : '' ?></span></a>
|
|
</li>
|
|
<li <?= isset($menu) && $menu === 'bookmarks' ? 'class="active"' : '' ?>>
|
|
<a href="?action=bookmarks"><?= t('bookmarks') ?></a>
|
|
</li>
|
|
<li <?= isset($menu) && $menu === 'history' ? 'class="active"' : '' ?>>
|
|
<a href="?action=history"><?= t('history') ?></a>
|
|
</li>
|
|
<li <?= isset($menu) && $menu === 'feeds' ? 'class="active"' : '' ?>>
|
|
<a href="?action=feeds"><?= t('subscriptions') ?></a>
|
|
</li>
|
|
<li <?= isset($menu) && $menu === 'config' ? 'class="active"' : '' ?>>
|
|
<a href="?action=config"><?= t('preferences') ?></a>
|
|
</li>
|
|
<li>
|
|
<a href="?action=logout"><?= t('logout') ?></a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
<section class="page">
|
|
<?= Helper\flash('<div class="alert alert-success">%s</div>') ?>
|
|
<?= Helper\flash_error('<div class="alert alert-error">%s</div>') ?>
|
|
|
|
<div class="invisible" id="shortcuts">
|
|
<h3><?= t('Keyboard shortcuts') ?></h3>
|
|
<ul>
|
|
<li><?= t('Previous item') ?> = <strong>p</strong> <?= t('or') ?> <strong>j</strong></li>
|
|
<li><?= t('Next item') ?> = <strong>n</strong> <?= t('or') ?> <strong>k</strong></li>
|
|
<li><?= t('Mark as read or unread') ?> = <strong>m</strong></li>
|
|
<li><?= t('Open original link') ?> = <strong>v</strong></li>
|
|
<li><?= t('Open item') ?> = <strong>o</strong></li>
|
|
<li><?= t('Bookmark item') ?> = <strong>f</strong></li>
|
|
<li><?= t('Previous page') ?> = <strong>h</strong></li>
|
|
<li><?= t('Next page') ?> = <strong>l</strong></li><br />
|
|
<li><?= t('Show shortcuts') ?> = <strong>?</strong></li>
|
|
<li><?= t('Close shortcut list') ?> = <strong>q</strong></li>
|
|
</ul>
|
|
</div>
|