aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html
diff options
context:
space:
mode:
authorGravatar Richard Schneider <richard@schneiderbox.net>2020-01-07 00:02:02 -0600
committerGravatar Frédéric Guillot <fred@miniflux.net>2020-01-06 22:02:02 -0800
commit6ebb29cd22f864842bd763828e914d172ce6f46b (patch)
treef463aa6757583c0cd61793565f14a4788f0ae952 /template/html
parente2315e6a54c93ff44f99482fae6a0931444dc27a (diff)
Add comments link keyboard shortcut
Diffstat (limited to 'template/html')
-rw-r--r--template/html/common/item_meta.html4
-rw-r--r--template/html/common/layout.html2
-rw-r--r--template/html/entry.html2
3 files changed, 5 insertions, 3 deletions
diff --git a/template/html/common/item_meta.html b/template/html/common/item_meta.html
index 1797700..8b16337 100644
--- a/template/html/common/item_meta.html
+++ b/template/html/common/item_meta.html
@@ -23,7 +23,7 @@
</li>
{{ if .entry.CommentsURL }}
<li>
- <a href="{{ .entry.CommentsURL | safeURL }}" title="{{ t "entry.comments.title" }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ t "entry.comments.label" }}</a>
+ <a href="{{ .entry.CommentsURL | safeURL }}" title="{{ t "entry.comments.title" }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-comments-link="true">{{ t "entry.comments.label" }}</a>
</li>
{{ end }}
<li>
@@ -47,4 +47,4 @@
</li>
</ul>
</div>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/template/html/common/layout.html b/template/html/common/layout.html
index 7b77878..4afa6ff 100644
--- a/template/html/common/layout.html
+++ b/template/html/common/layout.html
@@ -137,6 +137,8 @@
<li>{{ t "page.keyboard_shortcuts.open_item" }} = <strong>o</strong></li>
<li>{{ t "page.keyboard_shortcuts.open_original" }} = <strong>v</strong></li>
<li>{{ t "page.keyboard_shortcuts.open_original_same_window" }} = <strong>V</strong></li>
+ <li>{{ t "page.keyboard_shortcuts.open_comments" }} = <strong>c</strong></li>
+ <li>{{ t "page.keyboard_shortcuts.open_comments_same_window" }} = <strong>C</strong></li>
<li>{{ t "page.keyboard_shortcuts.toggle_read_status" }} = <strong>m</strong></li>
<li>{{ t "page.keyboard_shortcuts.mark_page_as_read" }} = <strong>A</strong></li>
<li>{{ t "page.keyboard_shortcuts.download_content" }} = <strong>d</strong></li>
diff --git a/template/html/entry.html b/template/html/entry.html
index cbf85f6..83215b5 100644
--- a/template/html/entry.html
+++ b/template/html/entry.html
@@ -54,7 +54,7 @@
</li>
{{ if .entry.CommentsURL }}
<li>
- <a href="{{ .entry.CommentsURL | safeURL }}" title="{{ t "entry.comments.title" }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ t "entry.comments.label" }}</a>
+ <a href="{{ .entry.CommentsURL | safeURL }}" title="{{ t "entry.comments.title" }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-comments-link="true">{{ t "entry.comments.label" }}</a>
</li>
{{ end }}
</ul>