From 538d08c16ce72dcbb8c6d041bdf9643cf4a16763 Mon Sep 17 00:00:00 2001 From: Ben Brooks Date: Sat, 7 Apr 2018 21:50:45 +0100 Subject: Add CommentsURL to entry --- template/common.go | 9 +++++++-- template/html/common/item_meta.html | 5 +++++ template/html/entry.html | 5 +++++ template/views.go | 9 +++++++-- 4 files changed, 24 insertions(+), 4 deletions(-) (limited to 'template') diff --git a/template/common.go b/template/common.go index 8240b2d..197478e 100644 --- a/template/common.go +++ b/template/common.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-02-24 17:47:34.998457627 +0000 GMT +// 2018-04-06 23:04:38.601763638 +0100 BST m=+0.010102865 package template @@ -63,6 +63,11 @@ var templateCommonMap = map[string]string{ data-value="{{ if eq .entry.Status "read" }}read{{ else }}unread{{ end }}" >{{ if eq .entry.Status "read" }}✘ {{ t "Unread" }}{{ else }}✔ {{ t "Read" }}{{ end }} + {{ if .entry.CommentsURL }} +
  • + {{ t "Comments" }} +
  • + {{ end }} {{ end }}`, @@ -215,7 +220,7 @@ var templateCommonMap = map[string]string{ var templateCommonMapChecksums = map[string]string{ "entry_pagination": "f1465fa70f585ae8043b200ec9de5bf437ffbb0c19fb7aefc015c3555614ee27", - "item_meta": "4796b74adca0567f3dbf8bdf6ac8cda59f455ea34cb6d4a92c83660fa72a883d", + "item_meta": "c14b5b36076e087346def2ebcef4876ed5e8165218f40dc017db44e754c22d03", "layout": "c7565e2cf904612e236bc1d7167c6c124ffe5d27348608eb5c2336606f266896", "pagination": "6ff462c2b2a53bc5448b651da017f40a39f1d4f16cef4b2f09784f0797286924", } diff --git a/template/html/common/item_meta.html b/template/html/common/item_meta.html index 5b00d9a..7d83c15 100644 --- a/template/html/common/item_meta.html +++ b/template/html/common/item_meta.html @@ -38,6 +38,11 @@ data-value="{{ if eq .entry.Status "read" }}read{{ else }}unread{{ end }}" >{{ if eq .entry.Status "read" }}✘ {{ t "Unread" }}{{ else }}✔ {{ t "Read" }}{{ end }} + {{ if .entry.CommentsURL }} +
  • + {{ t "Comments" }} +
  • + {{ end }} {{ end }} \ No newline at end of file diff --git a/template/html/entry.html b/template/html/entry.html index 237acf4..55d0390 100644 --- a/template/html/entry.html +++ b/template/html/entry.html @@ -36,6 +36,11 @@ data-label-done="{{ t "Done!" }}" >{{ t "Fetch original content" }} + {{ if .entry.CommentsURL }} +
  • + {{ t "Comments" }} +
  • + {{ end }}
    diff --git a/template/views.go b/template/views.go index 6f04da9..d8116d1 100644 --- a/template/views.go +++ b/template/views.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-03-01 23:04:58.998374277 -0800 PST m=+0.022158179 +// 2018-04-06 23:00:49.988275328 +0100 BST m=+0.007796083 package template @@ -501,6 +501,11 @@ var templateViewsMap = map[string]string{ data-label-done="{{ t "Done!" }}" >{{ t "Fetch original content" }} + {{ if .entry.CommentsURL }} +
  • + {{ t "Comments" }} +
  • + {{ end }}
    @@ -1233,7 +1238,7 @@ var templateViewsMapChecksums = map[string]string{ "edit_category": "cee720faadcec58289b707ad30af623d2ee66c1ce23a732965463250d7ff41c5", "edit_feed": "d2c1c8486d7faf4ee58151ccf3e3c690e53bd6872050d291c5db8452a83c3d53", "edit_user": "321e0a60cf3bf7441bff970f4920e4c5b7c1883f80ab1d1674f8137954b25033", - "entry": "27ea028515e79beb546f0b2792a3918c455fd877eea4c41d1a061f8e7b54a430", + "entry": "656a33552c3662c5d38a6178c811316ff55b38460b1f57d4087d51d631efe896", "feed_entries": "420da786e827a77fecc8794207d158af3a30e489ca2b2019f48d5228919af4a7", "feeds": "2a5abe37968ea34a0576dbef52341645cb1fc9562e351382fbf721491da6f4fa", "history": "967bc95236269ab3a77455910aca1939f43f93171fe1af77eb3b1b4eac579e55", -- cgit v1.2.3