[devdocsgjs/main: 1367/1867] Update ProTip copy to be dynamic
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1367/1867] Update ProTip copy to be dynamic
- Date: Fri, 19 Nov 2021 23:47:55 +0000 (UTC)
commit 08f78601e6ade7cddf73ae9ccbfba6311fc8caa3
Author: Nishiki Liu <nishiki hey com>
Date: Wed Dec 9 21:19:47 2020 -0800
Update ProTip copy to be dynamic
assets/javascripts/templates/tip_tmpl.coffee | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/assets/javascripts/templates/tip_tmpl.coffee b/assets/javascripts/templates/tip_tmpl.coffee
index 9436497e..227ebf5d 100644
--- a/assets/javascripts/templates/tip_tmpl.coffee
+++ b/assets/javascripts/templates/tip_tmpl.coffee
@@ -1,10 +1,10 @@
-app.templates.tipKeyNav = """
+app.templates.tipKeyNav = () -> """
<p class="_notif-text">
<strong>ProTip</strong>
<span class="_notif-info">(click to dismiss)</span>
<p class="_notif-text">
- Hit <code class="_label">↓</code> <code class="_label">↑</code> <code
class="_label">←</code> <code class="_label">→</code> to navigate the sidebar.<br>
- Hit <code class="_label">space / shift space</code>, <code class="_label">alt ↓/↑</code> or
<code class="_label">shift ↓/↑</code> to scroll the page.
+ Hit #{if app.settings.cache.arrowScroll then '<code class="_label">shift</code> +' else ''} <code
class="_label">↓</code> <code class="_label">↑</code> <code class="_label">←</code> <code
class="_label">→</code> to navigate the sidebar.<br>
+ Hit <code class="_label">space / shift space</code>#{if app.settings.cache.arrowScroll then ' or <code
class="_label">↓/↑</code>' else ', <code class="_label">alt ↓/↑</code> or <code
class="_label">shift ↓/↑</code>'} to scroll the page.
<p class="_notif-text">
<a href="/help#shortcuts" class="_notif-link">See all keyboard shortcuts</a>
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]