diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-04 15:04:41 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-04 15:04:41 -0400 |
commit | ad23b4961a0ac31a7f9c5259b48db868c3e26cf0 (patch) | |
tree | 06608436b467b1bd5677f67aed52736c179d9c4e /app | |
parent | 4f3088a33145ecc37a07845fb84b865d80b2c347 (diff) |
Add keyboard shortcuts to switch between board/calendar/list view
Diffstat (limited to 'app')
-rw-r--r-- | app/Template/config/about.php | 6 | ||||
-rw-r--r-- | app/Template/project/filters.php | 14 |
2 files changed, 13 insertions, 7 deletions
diff --git a/app/Template/config/about.php b/app/Template/config/about.php index b3fba429..03a66c3f 100644 --- a/app/Template/config/about.php +++ b/app/Template/config/about.php @@ -42,6 +42,12 @@ <h2><?= t('Keyboard shortcuts') ?></h2> </div> <div class="listing"> + <h3><?= t('Board/Calendar/List view') ?></h3> + <ul> + <li><?= t('Switch to the board view') ?> = <strong>v b</strong></li> + <li><?= t('Switch to the calendar view') ?> = <strong>v c</strong></li> + <li><?= t('Switch to the list view') ?> = <strong>v l</strong></li> + </ul> <h3><?= t('Board view') ?></h3> <ul> <li><?= t('New task') ?> = <strong>n</strong></li> diff --git a/app/Template/project/filters.php b/app/Template/project/filters.php index 90ad429b..396baadf 100644 --- a/app/Template/project/filters.php +++ b/app/Template/project/filters.php @@ -6,18 +6,18 @@ <?php if (isset($is_board)): ?> <li> <span class="filter-collapse"> - <i class="fa fa-compress fa-fw"></i> <a href="#" class="filter-collapse-link"><?= t('Collapse tasks') ?></a> + <i class="fa fa-compress fa-fw"></i> <a href="#" class="filter-collapse-link" title="<?= t('Keyboard shortcut: "%s"', 's') ?>"><?= t('Collapse tasks') ?></a> </span> <span class="filter-expand" style="display: none"> - <i class="fa fa-expand fa-fw"></i> <a href="#" class="filter-expand-link"><?= t('Expand tasks') ?></a> + <i class="fa fa-expand fa-fw"></i> <a href="#" class="filter-expand-link" title="<?= t('Keyboard shortcut: "%s"', 's') ?>"><?= t('Expand tasks') ?></a> </span> </li> <li> <span class="filter-compact"> - <i class="fa fa-th fa-fw"></i> <a href="#" class="filter-toggle-scrolling"><?= t('Compact view') ?></a> + <i class="fa fa-th fa-fw"></i> <a href="#" class="filter-toggle-scrolling" title="<?= t('Keyboard shortcut: "%s"', 'c') ?>"><?= t('Compact view') ?></a> </span> <span class="filter-wide" style="display: none"> - <i class="fa fa-arrows-h fa-fw"></i> <a href="#" class="filter-toggle-scrolling"><?= t('Horizontal scrolling') ?></a> + <i class="fa fa-arrows-h fa-fw"></i> <a href="#" class="filter-toggle-scrolling" title="<?= t('Keyboard shortcut: "%s"', 'c') ?>"><?= t('Horizontal scrolling') ?></a> </span> </li> <?php endif ?> @@ -28,15 +28,15 @@ <ul class="views"> <li <?= $filters['controller'] === 'board' ? 'class="active"' : '' ?>> <i class="fa fa-th fa-fw"></i> - <?= $this->url->link(t('Board'), 'board', 'show', array('project_id' => $project['id'], 'search' => $filters['search'])) ?> + <?= $this->url->link(t('Board'), 'board', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-board', t('Keyboard shortcut: "%s"', 'v b')) ?> </li> <li <?= $filters['controller'] === 'calendar' ? 'class="active"' : '' ?>> <i class="fa fa-calendar fa-fw"></i> - <?= $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'], 'search' => $filters['search'])) ?> + <?= $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-calendar', t('Keyboard shortcut: "%s"', 'v c')) ?> </li> <li <?= $filters['controller'] === 'listing' ? 'class="active"' : '' ?>> <i class="fa fa-list fa-fw"></i> - <?= $this->url->link(t('List'), 'listing', 'show', array('project_id' => $project['id'], 'search' => $filters['search'])) ?> + <?= $this->url->link(t('List'), 'listing', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-listing', t('Keyboard shortcut: "%s"', 'v l')) ?> </li> </ul> <form method="get" action="?" class="search"> |