From cb980ddc455e9eb89b54dcb696cb7185fb347598 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 31 Mar 2016 21:15:05 +0200 Subject: [PATCH] front/nav: add access keys --- static/css/main.css | 3 +++ static/html/top_navigation.tpl | 2 +- .../controllers/top_navigation_controller.js | 25 ++++++++++--------- static/js/views/top_navigation_view.js | 7 ++++++ 4 files changed, 24 insertions(+), 13 deletions(-) diff --git a/static/css/main.css b/static/css/main.css index f95d3c9..bcabaab 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -102,6 +102,9 @@ nav.text-nav ul li.active a { #top-nav ul li[data-name=help] { float: none; } +#top-nav .access-key { + text-decoration: underline; +} .messages .message { padding: 0.5em; diff --git a/static/html/top_navigation.tpl b/static/html/top_navigation.tpl index 92da560..fb693c2 100644 --- a/static/html/top_navigation.tpl +++ b/static/html/top_navigation.tpl @@ -3,7 +3,7 @@ -->{{#each items}}{{#if this.available}}
  • {{this.name}}{{this.name}}
  • {{/if}}{{/each}}