aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'template/common.go')
-rw-r--r--template/common.go34
1 files changed, 18 insertions, 16 deletions
diff --git a/template/common.go b/template/common.go
index 62645ef..f573ba1 100644
--- a/template/common.go
+++ b/template/common.go
@@ -1,5 +1,5 @@
// Code generated by go generate; DO NOT EDIT.
-// 2018-04-29 16:22:00.539326448 -0700 PDT m=+0.023616542
+// 2018-04-29 17:36:50.459886967 -0700 PDT m=+0.024552529
package template
@@ -32,18 +32,25 @@ var templateCommonMap = map[string]string{
<li>
<time datetime="{{ isodate .entry.Date }}" title="{{ isodate .entry.Date }}">{{ elapsed .user.Timezone .entry.Date }}</time>
</li>
- <li>
- <a href="#"
- title="{{ t "Save this article" }}"
- data-save-entry="true"
- data-save-url="{{ route "saveEntry" "entryID" .entry.ID }}"
- data-label-loading="{{ t "Saving..." }}"
- data-label-done="{{ t "Done!" }}"
- >{{ t "Save" }}</a>
- </li>
+ {{ if .hasSaveEntry }}
+ <li>
+ <a href="#"
+ title="{{ t "Save this article" }}"
+ data-save-entry="true"
+ data-save-url="{{ route "saveEntry" "entryID" .entry.ID }}"
+ data-label-loading="{{ t "Saving..." }}"
+ data-label-done="{{ t "Done!" }}"
+ >{{ t "Save" }}</a>
+ </li>
+ {{ end }}
<li>
<a href="{{ .entry.URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a>
</li>
+ {{ if .entry.CommentsURL }}
+ <li>
+ <a href="{{ .entry.CommentsURL }}" title="{{ t "View Comments" }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ t "Comments" }}</a>
+ </li>
+ {{ end }}
<li>
<a href="#"
data-toggle-bookmark="true"
@@ -63,11 +70,6 @@ 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 }}</a>
</li>
- {{ if .entry.CommentsURL }}
- <li>
- <a href="{{ .entry.CommentsURL }}" title="{{ t "View Comments" }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer">{{ t "Comments" }}</a>
- </li>
- {{ end }}
</ul>
</div>
{{ end }}`,
@@ -220,7 +222,7 @@ var templateCommonMap = map[string]string{
var templateCommonMapChecksums = map[string]string{
"entry_pagination": "f1465fa70f585ae8043b200ec9de5bf437ffbb0c19fb7aefc015c3555614ee27",
- "item_meta": "c14b5b36076e087346def2ebcef4876ed5e8165218f40dc017db44e754c22d03",
+ "item_meta": "6cff8ae243f19dac936e523867d2975f70aa749b2a461ae63f6ebbca94cf7419",
"layout": "c7565e2cf904612e236bc1d7167c6c124ffe5d27348608eb5c2336606f266896",
"pagination": "6ff462c2b2a53bc5448b651da017f40a39f1d4f16cef4b2f09784f0797286924",
}