diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/common.go | 8 | ||||
-rw-r--r-- | template/html/common/icons.html | 2 | ||||
-rw-r--r-- | template/html/common/item_meta.html | 2 | ||||
-rw-r--r-- | template/html/entry.html | 7 | ||||
-rw-r--r-- | template/views.go | 9 |
5 files changed, 21 insertions, 7 deletions
diff --git a/template/common.go b/template/common.go index f184fe55..3139dd36 100644 --- a/template/common.go +++ b/template/common.go @@ -184,7 +184,7 @@ SOFTWARE. <line x1="16" y1="12" x2="16" y2="12.01" /> </svg> {{ end }} -{{ define "icon_original" }} +{{ define "icon_external_link" }} <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-external-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z"/> <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" /> @@ -293,7 +293,7 @@ SOFTWARE. target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" - data-original-link="true">{{ template "icon_original" }}<span class="icon-label">{{ t "entry.original.label" }}</span></a> + data-original-link="true">{{ template "icon_external_link" }}<span class="icon-label">{{ t "entry.external_link.label" }}</span></a> </li> {{ if .entry.CommentsURL }} <li> @@ -522,8 +522,8 @@ var templateCommonMapChecksums = map[string]string{ "entry_pagination": "cdca9cf12586e41e5355190b06d9168f57f77b85924d1e63b13524bc15abcbf6", "feed_list": "931e43d328a116318c510de5658c688cd940b934c86b6ec82a472e1f81e020ae", "feed_menu": "318d8662dda5ca9dfc75b909c8461e79c86fb5082df1428f67aaf856f19f4b50", - "icons": "3dbe754a98f524a227111191d76b8c6944711b13613cc548ee9e9808fe0bffb4", - "item_meta": "b7d69c26be12f72f821d7b509a9f910b1f341c2db02f138d5178f72a2c5b7939", + "icons": "9a41753778072f286216085d8712495e2ccca20c7a24f5c982775436a3d38579", + "item_meta": "eb72c6e2a924759af20b8ef41f2ce7495aedc053181c2e5ca1b063f9410c58b0", "layout": "65767e7dbebe1f7ed42895ecd5a737b0693e4a2ec35e84e3e391f462beb11977", "pagination": "7b61288e86283c4cf0dc83bcbf8bf1c00c7cb29e60201c8c0b633b2450d2911f", "settings_menu": "e2b777630c0efdbc529800303c01d6744ed3af80ec505ac5a5b3f99c9b989156", diff --git a/template/html/common/icons.html b/template/html/common/icons.html index 703e9622..bf38b715 100644 --- a/template/html/common/icons.html +++ b/template/html/common/icons.html @@ -78,7 +78,7 @@ SOFTWARE. <line x1="16" y1="12" x2="16" y2="12.01" /> </svg> {{ end }} -{{ define "icon_original" }} +{{ define "icon_external_link" }} <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-external-link" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z"/> <path d="M11 7h-5a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-5" /> diff --git a/template/html/common/item_meta.html b/template/html/common/item_meta.html index e245c61b..c31ea955 100644 --- a/template/html/common/item_meta.html +++ b/template/html/common/item_meta.html @@ -58,7 +58,7 @@ target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" - data-original-link="true">{{ template "icon_original" }}<span class="icon-label">{{ t "entry.original.label" }}</span></a> + data-original-link="true">{{ template "icon_external_link" }}<span class="icon-label">{{ t "entry.external_link.label" }}</span></a> </li> {{ if .entry.CommentsURL }} <li> diff --git a/template/html/entry.html b/template/html/entry.html index 84c81a3c..f3ecfd20 100644 --- a/template/html/entry.html +++ b/template/html/entry.html @@ -56,6 +56,13 @@ {{ end }} </li> <li> + <a href="{{ .entry.URL | safeURL }}" + target="_blank" + rel="noopener noreferrer" + referrerpolicy="no-referrer" + data-original-link="true">{{ template "icon_external_link" }}<span class="icon-label">{{ t "entry.external_link.label" }}</span></a> + </li> + <li> <a href="#" title="{{ t "entry.scraper.title" }}" data-fetch-content-entry="true" diff --git a/template/views.go b/template/views.go index a020f31f..c0ba927e 100644 --- a/template/views.go +++ b/template/views.go @@ -734,6 +734,13 @@ var templateViewsMap = map[string]string{ {{ end }} </li> <li> + <a href="{{ .entry.URL | safeURL }}" + target="_blank" + rel="noopener noreferrer" + referrerpolicy="no-referrer" + data-original-link="true">{{ template "icon_external_link" }}<span class="icon-label">{{ t "entry.external_link.label" }}</span></a> + </li> + <li> <a href="#" title="{{ t "entry.scraper.title" }}" data-fetch-content-entry="true" @@ -1608,7 +1615,7 @@ var templateViewsMapChecksums = map[string]string{ "edit_category": "b1c0b38f1b714c5d884edcd61e5b5295a5f1c8b71c469b35391e4dcc97cc6d36", "edit_feed": "5de7626448c48de384a0388227ab0c3b75b1ec19b5de440c91039180852cc5dc", "edit_user": "c692db9de1a084c57b93e95a14b041d39bf489846cbb91fc982a62b72b77062a", - "entry": "c503dcf77de37090b9f05352bb9d99729085eec6e7bc22be94f2b4b244b4e48c", + "entry": "8fdecabc90354615cdf213542620e5ac16632a494fd6a87b3b2280ac879f6c34", "feed_entries": "89977ea86b8d43305d587b70e6d9c45c2c88249b3966f2d31051dc7a5f1c48b6", "feeds": "ec7d3fa96735bd8422ba69ef0927dcccddc1cc51327e0271f0312d3f881c64fd", "history_entries": "261b47e5f2f699a9cef1b3b690f80d7aabf585d05b77d67645d623f7ff6c0fbb", |