From 6ebb29cd22f864842bd763828e914d172ce6f46b Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Tue, 7 Jan 2020 00:02:02 -0600 Subject: Add comments link keyboard shortcut --- template/common.go | 11 +++++++---- template/html/common/item_meta.html | 4 ++-- template/html/common/layout.html | 2 ++ template/html/entry.html | 2 +- template/views.go | 4 ++-- 5 files changed, 14 insertions(+), 9 deletions(-) (limited to 'template') 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{ {{ if .entry.CommentsURL }}
  • - {{ t "entry.comments.label" }} + {{ t "entry.comments.label" }}
  • {{ end }}
  • @@ -146,7 +146,8 @@ var templateCommonMap = map[string]string{
  • -{{ end }}`, +{{ end }} +`, "layout": `{{ define "base" }} @@ -286,6 +287,8 @@ var templateCommonMap = map[string]string{
  • {{ t "page.keyboard_shortcuts.open_item" }} = o
  • {{ t "page.keyboard_shortcuts.open_original" }} = v
  • {{ t "page.keyboard_shortcuts.open_original_same_window" }} = V
  • +
  • {{ t "page.keyboard_shortcuts.open_comments" }} = c
  • +
  • {{ t "page.keyboard_shortcuts.open_comments_same_window" }} = C
  • {{ t "page.keyboard_shortcuts.toggle_read_status" }} = m
  • {{ t "page.keyboard_shortcuts.mark_page_as_read" }} = A
  • {{ t "page.keyboard_shortcuts.download_content" }} = d
  • @@ -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 @@ {{ if .entry.CommentsURL }}
  • - {{ t "entry.comments.label" }} + {{ t "entry.comments.label" }}
  • {{ end }}
  • @@ -47,4 +47,4 @@
  • -{{ 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 @@
  • {{ t "page.keyboard_shortcuts.open_item" }} = o
  • {{ t "page.keyboard_shortcuts.open_original" }} = v
  • {{ t "page.keyboard_shortcuts.open_original_same_window" }} = V
  • +
  • {{ t "page.keyboard_shortcuts.open_comments" }} = c
  • +
  • {{ t "page.keyboard_shortcuts.open_comments_same_window" }} = C
  • {{ t "page.keyboard_shortcuts.toggle_read_status" }} = m
  • {{ t "page.keyboard_shortcuts.mark_page_as_read" }} = A
  • {{ t "page.keyboard_shortcuts.download_content" }} = d
  • 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 @@ {{ if .entry.CommentsURL }}
  • - {{ t "entry.comments.label" }} + {{ t "entry.comments.label" }}
  • {{ end }} 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{ {{ if .entry.CommentsURL }}
  • - {{ t "entry.comments.label" }} + {{ t "entry.comments.label" }}
  • {{ end }} @@ -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", -- cgit v1.2.3