diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-04-28 18:20:46 -0700 |
---|---|---|
committer | fguillot <fred@miniflux.net> | 2019-04-28 18:35:58 -0700 |
commit | 4295a86e55e765e3e396a03c090bd08be9e0a390 (patch) | |
tree | 77b388feb1ec345c3823b7c7338ab8d293ff3b77 /template/html/common/layout.html | |
parent | 3c8cc0b2b69c8de7343dfbec0e22934c954487df (diff) |
Add option to enable/disable keyboard shortcuts
Diffstat (limited to 'template/html/common/layout.html')
-rw-r--r-- | template/html/common/layout.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/template/html/common/layout.html b/template/html/common/layout.html index 312c21f..695d177 100644 --- a/template/html/common/layout.html +++ b/template/html/common/layout.html @@ -38,7 +38,9 @@ <script type="text/javascript" src="{{ route "javascript" "name" "app" }}?{{ .app_js_checksum }}" defer></script> <script type="text/javascript" src="{{ route "javascript" "name" "sw" }}?{{ .sw_js_checksum }}" defer id="service-worker-script"></script> </head> -<body data-entries-status-url="{{ route "updateEntriesStatus" }}"> +<body + data-entries-status-url="{{ route "updateEntriesStatus" }}" + {{ if .user }}{{ if not .user.KeyboardShortcuts }}data-disable-keyboard-shortcuts="true"{{ end }}{{ end }}> {{ if .user }} <header class="header"> <nav> |