diff options
author | Richard Schneider <richard@schneiderbox.net> | 2020-01-07 00:02:02 -0600 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2020-01-06 22:02:02 -0800 |
commit | 6ebb29cd22f864842bd763828e914d172ce6f46b (patch) | |
tree | f463aa6757583c0cd61793565f14a4788f0ae952 /template | |
parent | e2315e6a54c93ff44f99482fae6a0931444dc27a (diff) |
Add comments link keyboard shortcut
Diffstat (limited to 'template')
-rw-r--r-- | template/common.go | 11 | ||||
-rw-r--r-- | template/html/common/item_meta.html | 4 | ||||
-rw-r--r-- | template/html/common/layout.html | 2 | ||||
-rw-r--r-- | template/html/entry.html | 2 | ||||
-rw-r--r-- | template/views.go | 4 |
5 files changed, 14 insertions, 9 deletions
diff --git a/template/common.go b/template/common.go index ffd1329..4fae391 100644 --- a/template/common.go +++ b/template/common.go @@ -122,7 +122,7 @@ var templateCommonMap = map[string]string{ </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> @@ -146,7 +146,8 @@ var templateCommonMap = map[string]string{ </li> </ul> </div> -{{ end }}`, +{{ end }} +`, "layout": `{{ define "base" }} <!DOCTYPE html> <html> @@ -286,6 +287,8 @@ var templateCommonMap = map[string]string{ <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> @@ -352,8 +355,8 @@ var templateCommonMapChecksums = map[string]string{ "entry_pagination": "4faa91e2eae150c5e4eab4d258e039dfdd413bab7602f0009360e6d52898e353", "feed_list": "db406e7cb81292ce1d974d63f63270384a286848b2e74fe36bf711b4eb5717dd", "feed_menu": "318d8662dda5ca9dfc75b909c8461e79c86fb5082df1428f67aaf856f19f4b50", - "item_meta": "285daae854456d0156967fdbe2834c954f2c772239bb736c88041d49a4a21219", - "layout": "f19597d8cd74e17b33826c25b8421f46fef87276f0d95c695bba8f53bb4f95e6", + "item_meta": "061107d7adf9b7430b5f28a0f452a294df73c3b16c19274e9ce6f7cdf71064a4", + "layout": "a1f67b8908745ee4f9cee6f7bbbb0b242d4dcc101207ad4a9d67242b45683299", "pagination": "3386e90c6e1230311459e9a484629bc5d5bf39514a75ef2e73bbbc61142f7abb", "settings_menu": "78e5a487ede18610b23db74184dab023170f9e083cc0625bc2c874d1eea1a4ce", } 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> diff --git a/template/views.go b/template/views.go index 4e87b57..b19da6c 100644 --- a/template/views.go +++ b/template/views.go @@ -604,7 +604,7 @@ var templateViewsMap = map[string]string{ </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> @@ -1316,7 +1316,7 @@ var templateViewsMapChecksums = map[string]string{ "edit_category": "b1c0b38f1b714c5d884edcd61e5b5295a5f1c8b71c469b35391e4dcc97cc6d36", "edit_feed": "cc0b5dbb73f81398410958b41771ed38246bc7ae4bd548228f0d48c49a598c2a", "edit_user": "c692db9de1a084c57b93e95a14b041d39bf489846cbb91fc982a62b72b77062a", - "entry": "4258936829a5baf9d5b95d3884add13034105a931ee844ee4c4d3a6f1928f61a", + "entry": "9aac76b1cfa80428f136edf292f8610b14289ca9595d725c1365bc0a2847a21d", "feed_entries": "9c70b82f55e4b311eff20be1641733612e3c1b406ce8010861e4c417d97b6dcc", "feeds": "ec7d3fa96735bd8422ba69ef0927dcccddc1cc51327e0271f0312d3f881c64fd", "history_entries": "87e17d39de70eb3fdbc4000326283be610928758eae7924e4b08dcb446f3b6a9", |