2017-11-20 06:10:04 +01:00
// Code generated by go generate; DO NOT EDIT.
2018-08-25 06:51:50 +02:00
package template // import "miniflux.app/template"
2017-11-20 06:10:04 +01:00
var templateCommonMap = map [ string ] string {
"entry_pagination" : ` { { define "entry_pagination" } }
< div class = "pagination" >
< div class = "pagination-prev" >
{ { if . prevEntry } }
2020-03-02 02:38:29 +01:00
< a href = "{{ .prevEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title = "{{ .prevEntry.Title }}" data - page = "previous" rel = "prev" > { { t "pagination.previous" } } < / a >
2017-11-20 06:10:04 +01:00
{ { else } }
2018-09-22 03:53:29 +02:00
{ { t "pagination.previous" } }
2017-11-20 06:10:04 +01:00
{ { end } }
< / div >
< div class = "pagination-next" >
{ { if . nextEntry } }
2020-03-02 02:38:29 +01:00
< a href = "{{ .nextEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title = "{{ .nextEntry.Title }}" data - page = "next" rel = "next" > { { t "pagination.next" } } < / a >
2017-11-20 06:10:04 +01:00
{ { else } }
2018-09-22 03:53:29 +02:00
{ { t "pagination.next" } }
2017-11-20 06:10:04 +01:00
{ { end } }
< / div >
< / div >
2020-03-02 02:38:29 +01:00
{ { end } }
` ,
2019-11-18 04:44:12 +01:00
"feed_list" : ` { { define "feed_list" } }
< div class = "items" >
{ { range . feeds } }
< article class = "item {{ if ne .ParsingErrorCount 0 }}feed-parsing-error{{ end }}" >
2020-06-25 06:46:37 +02:00
< div class = "item-header" dir = "auto" >
2019-11-18 04:44:12 +01:00
< span class = "item-title" >
{ { if . Icon } }
< img src = "{{ route " icon " " iconID " .Icon.IconID }}" width = "16" height = "16" loading = "lazy" alt = "{{ .Title }}" >
{ { end } }
{ { if . Disabled } } 🚫 { { end } }
< a href = "{{ route " feedEntries " " feedID " .ID }}" > { { . Title } } < / a >
< / span >
< span class = "feed-entries-counter" >
( < span title = "{{ t " page . feeds . unread_counter " }}" > { { . UnreadCount } } < / span > / < span title = "{{ t " page . feeds . read_counter " }}" > { { . ReadCount } } < / span > )
< / span >
< span class = "category" >
< a href = "{{ route " categoryEntries " " categoryID " .Category.ID }}" > { { . Category . Title } } < / a >
< / span >
< / div >
< div class = "item-meta" >
2020-03-23 00:33:35 +01:00
< ul class = "item-meta-info" >
2020-06-25 06:46:37 +02:00
< li dir = "auto" >
2020-01-02 20:06:57 +01:00
< a href = "{{ .SiteURL | safeURL }}" title = "{{ .SiteURL }}" target = "_blank" rel = "noopener noreferrer" referrerpolicy = "no-referrer" data - original - link = "true" > { { domain . SiteURL } } < / a >
2019-11-18 04:44:12 +01:00
< / li >
< li >
{ { t "page.feeds.last_check" } } < time datetime = "{{ isodate .CheckedAt }}" title = "{{ isodate .CheckedAt }}" > { { elapsed $ . user . Timezone . CheckedAt } } < / time >
< / li >
< / ul >
2020-06-15 04:00:41 +02:00
< ul class = "item-meta-icons" >
2019-11-18 04:44:12 +01:00
< li >
2020-06-15 04:00:41 +02:00
< a href = "{{ route " refreshFeed " " feedID " .ID }}" > { { template "icon_refresh" } } < span class = "icon-label" > { { t "menu.refresh_feed" } } < / span > < / a >
2019-11-18 04:44:12 +01:00
< / li >
< li >
2020-06-15 04:00:41 +02:00
< a href = "{{ route " editFeed " " feedID " .ID }}" > { { template "icon_edit" } } < span class = "icon-label" > { { t "menu.edit_feed" } } < / span > < / a >
2019-11-18 04:44:12 +01:00
< / li >
< li >
< a href = "#"
data - confirm = "true"
data - label - question = "{{ t " confirm . question " }}"
data - label - yes = "{{ t " confirm . yes " }}"
data - label - no = "{{ t " confirm . no " }}"
data - label - loading = "{{ t " confirm . loading " }}"
2020-06-15 04:00:41 +02:00
data - url = "{{ route " removeFeed " " feedID " .ID }}" > { { template "icon_delete" } } < span class = "icon-label" > { { t "action.remove" } } < / span > < / a >
2019-11-18 04:44:12 +01:00
< / li >
2020-08-20 07:17:33 +02:00
{ { if . UnreadCount } }
< li >
< a href = "{{ route " markFeedAsRead " " feedID " .ID }}" > { { template "icon_read" } } < span class = "icon-label" > { { t "menu.mark_all_as_read" } } < / span > < / a >
< / li >
{ { end } }
2019-11-18 04:44:12 +01:00
< / ul >
< / div >
{ { if ne . ParsingErrorCount 0 } }
< div class = "parsing-error" >
< strong title = "{{ .ParsingErrorMsg }}" class = "parsing-error-count" > { { plural "page.feeds.error_count" . ParsingErrorCount . ParsingErrorCount } } < / strong >
- < small class = "parsing-error-message" > { { . ParsingErrorMsg } } < / small >
< / div >
{ { end } }
< / article >
{ { end } }
< / div >
2020-06-25 06:46:37 +02:00
{ { end } }
` ,
2020-01-02 22:03:34 +01:00
"feed_menu" : ` { { define "feed_menu" } }
< ul >
< li >
< a href = "{{ route " feeds " }}" > { { t "menu.feeds" } } < / a >
< / li >
< li >
< a href = "{{ route " addSubscription " }}" > { { t "menu.add_feed" } } < / a >
< / li >
< li >
< a href = "{{ route " export " }}" > { { t "menu.export" } } < / a >
< / li >
< li >
< a href = "{{ route " import " }}" > { { t "menu.import" } } < / a >
< / li >
< li >
< a href = "{{ route " refreshAllFeeds " }}" > { { t "menu.refresh_all_feeds" } } < / a >
< / li >
< / ul >
2020-03-22 23:18:12 +01:00
{ { end } } ` ,
"icons" : ` < ! --
MIT License
Copyright ( c ) 2020 Paweł Kuna
Permission is hereby granted , free of charge , to any person obtaining a copy
of this software and associated documentation files ( the "Software" ) , to deal
in the Software without restriction , including without limitation the rights
to use , copy , modify , merge , publish , distribute , sublicense , and / or sell
copies of the Software , and to permit persons to whom the Software is
furnished to do so , subject to the following conditions :
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED "AS IS" , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR
IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY ,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT . IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM , DAMAGES OR OTHER
LIABILITY , WHETHER IN AN ACTION OF CONTRACT , TORT OR OTHERWISE , ARISING FROM ,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE .
-- >
{ { define "icon_read" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-circle-check" 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" / >
< circle cx = "12" cy = "12" r = "9" / >
< path d = "M9 12l2 2l4 -4" / >
< / svg >
{ { end } }
{ { define "icon_unread" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-circle-x" 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" / >
< circle cx = "12" cy = "12" r = "9" / >
< path d = "M10 10l4 4m0 -4l-4 4" / >
< / svg >
{ { end } }
{ { define "icon_star" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-star" 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 = "M12 17.75l-6.172 3.245 1.179-6.873-4.993-4.867 6.9-1.002L12 2l3.086 6.253 6.9 1.002-4.993 4.867 1.179 6.873z" / >
< / svg >
{ { end } }
{ { define "icon_save" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-download" 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 = "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" / >
< polyline points = "7 11 12 16 17 11" / >
< line x1 = "12" y1 = "4" x2 = "12" y2 = "16" / >
< / svg >
{ { end } }
{ { define "icon_scraper" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-cloud-download" 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 = "M19 18a3.5 3.5 0 0 0 0 -7h-1a5 4.5 0 0 0 -11 -2a4.6 4.4 0 0 0 -2.1 8.4" / >
< line x1 = "12" y1 = "13" x2 = "12" y2 = "22" / >
< polyline points = "9 19 12 22 15 19" / >
< / svg >
{ { end } }
{ { define "icon_share" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-share" 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" / >
< circle cx = "6" cy = "12" r = "3" / >
< circle cx = "18" cy = "6" r = "3" / >
< circle cx = "18" cy = "18" r = "3" / >
< line x1 = "8.7" y1 = "10.7" x2 = "15.3" y2 = "7.3" / >
< line x1 = "8.7" y1 = "13.3" x2 = "15.3" y2 = "16.7" / >
< / svg >
{ { end } }
{ { define "icon_comment" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-message-circle" 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 = "M3 20l1.3 -3.9a9 8 0 1 1 3.4 2.9l-4.7 1" / >
< line x1 = "12" y1 = "12" x2 = "12" y2 = "12.01" / >
< line x1 = "8" y1 = "12" x2 = "8" y2 = "12.01" / >
< line x1 = "16" y1 = "12" x2 = "16" y2 = "12.01" / >
< / svg >
{ { end } }
{ { define "icon_original" } }
< 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" / >
< line x1 = "10" y1 = "14" x2 = "20" y2 = "4" / >
< polyline points = "15 4 20 4 20 9" / >
< / svg >
2020-03-23 02:48:14 +01:00
{ { end } }
{ { define "icon_delete" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-trash" 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" / >
< line x1 = "4" y1 = "7" x2 = "20" y2 = "7" / >
< line x1 = "10" y1 = "11" x2 = "10" y2 = "17" / >
< line x1 = "14" y1 = "11" x2 = "14" y2 = "17" / >
< path d = "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" / >
< path d = "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" / >
< / svg >
2020-06-15 04:00:41 +02:00
{ { end } }
{ { define "icon_edit" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-edit" 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 = "M9 7 h-3a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-3" / >
< path d = "M9 15h3l8.5 -8.5a1.5 1.5 0 0 0 -3 -3l-8.5 8.5v3" / >
< line x1 = "16" y1 = "5" x2 = "19" y2 = "8" / >
< / svg >
{ { end } }
{ { define "icon_feeds" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-folders" 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 = "M9 4h3l2 2h5a2 2 0 0 1 2 2v7a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2" / >
< path d = "M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2h2" / >
< / svg >
{ { end } }
{ { define "icon_entries" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-news" 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 = "M16 6h3a1 1 0 0 1 1 1v11a2 2 0 0 1 -4 0v-13a1 1 0 0 0 -1 -1h-10a1 1 0 0 0 -1 1v12a3 3 0 0 0 3 3h11" / >
< line x1 = "8" y1 = "8" x2 = "12" y2 = "8" / >
< line x1 = "8" y1 = "12" x2 = "12" y2 = "12" / >
< line x1 = "8" y1 = "16" x2 = "12" y2 = "16" / >
< / svg >
{ { end } }
{ { define "icon_refresh" } }
< svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-refresh" 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 = "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -5v5h5" / >
< path d = "M4 13a8.1 8.1 0 0 0 15.5 2m.5 5v-5h-5" / >
< / svg >
2018-01-19 05:23:26 +01:00
{ { end } } ` ,
"item_meta" : ` { { define "item_meta" } }
< div class = "item-meta" >
2020-03-23 00:33:35 +01:00
< ul class = "item-meta-info" >
2018-01-19 05:23:26 +01:00
< li >
2018-07-18 04:01:28 +02:00
< a href = "{{ route " feedEntries " " feedID " .entry.Feed.ID }}" title = "{{ .entry.Feed.SiteURL }}" > { { truncate . entry . Feed . Title 35 } } < / a >
2018-01-19 05:23:26 +01:00
< / li >
< li >
2018-02-04 23:37:42 +01:00
< time datetime = "{{ isodate .entry.Date }}" title = "{{ isodate .entry.Date }}" > { { elapsed . user . Timezone . entry . Date } } < / time >
2018-01-19 05:23:26 +01:00
< / li >
2020-07-17 04:46:24 +02:00
{ { if . user . ShowReadingTime } }
< li >
< span >
{ { plural "entry.estimated_reading_time" ( timeToRead . entry . Content ) ( timeToRead . entry . Content ) } }
< / span >
< / li >
{ { end } }
2020-01-28 03:41:34 +01:00
< / ul >
2020-03-22 23:18:12 +01:00
< ul class = "item-meta-icons" >
2020-07-29 05:51:55 +02:00
< li >
< a href = "#"
title = "{{ t " entry . status . title " }}"
data - toggle - status = "true"
data - label - read = "✔ {{ t " entry . status . read " }}"
data - label - unread = "✘ {{ t " entry . status . unread " }}"
data - value = "{{ if eq .entry.Status " read " }}read{{ else }}unread{{ end }}"
> < span class = "icon-label" > { { if eq . entry . Status "read" } } ✘ & nbsp ; { { t "entry.status.unread" } } { { else } } ✔ & nbsp ; { { t "entry.status.read" } } { { end } } < / span > < / a >
< / li >
< li >
< a href = "#"
data - toggle - bookmark = "true"
data - bookmark - url = "{{ route " toggleBookmark " " entryID " .entry.ID }}"
data - label - loading = "{{ t " entry . state . saving " }}"
data - label - star = "☆ {{ t " entry . bookmark . toggle . on " }}"
data - label - unstar = "★ {{ t " entry . bookmark . toggle . off " }}"
data - value = "{{ if .entry.Starred }}star{{ else }}unstar{{ end }}"
> < span class = "icon-label" > { { if . entry . Starred } } ★ & nbsp ; { { t "entry.bookmark.toggle.off" } } { { else } } ☆ & nbsp ; { { t "entry.bookmark.toggle.on" } } { { end } } < / span > < / a >
< / li >
2020-03-23 02:48:14 +01:00
{ { if . entry . ShareCode } }
< li >
< a href = "{{ route " sharedEntry " " shareCode " .entry.ShareCode }}"
title = "{{ t " entry . shared_entry . title " }}"
target = "_blank" > { { template "icon_share" } } < span class = "icon-label" > { { t "entry.shared_entry.label" } } < / span > < / a >
< / li >
{ { end } }
2018-04-30 02:43:40 +02:00
{ { if . hasSaveEntry } }
< li >
< a href = "#"
2018-09-22 03:53:29 +02:00
title = "{{ t " entry . save . title " }}"
2018-04-30 02:43:40 +02:00
data - save - entry = "true"
data - save - url = "{{ route " saveEntry " " entryID " .entry.ID }}"
2018-09-22 03:53:29 +02:00
data - label - loading = "{{ t " entry . state . saving " }}"
data - label - done = "{{ t " entry . save . completed " }}"
2020-03-22 23:18:12 +01:00
> { { template "icon_save" } } < span class = "icon-label" > { { t "entry.save.label" } } < / span > < / a >
2018-04-30 02:43:40 +02:00
< / li >
{ { end } }
2018-01-19 05:23:26 +01:00
< li >
2020-03-22 23:18:12 +01:00
< a href = "{{ .entry.URL | safeURL }}"
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 >
2018-01-19 05:23:26 +01:00
< / li >
2018-04-30 02:43:40 +02:00
{ { if . entry . CommentsURL } }
< li >
2020-03-22 23:18:12 +01:00
< a href = "{{ .entry.CommentsURL | safeURL }}"
title = "{{ t " entry . comments . title " }}"
target = "_blank"
rel = "noopener noreferrer"
referrerpolicy = "no-referrer"
data - comments - link = "true" > { { template "icon_comment" } } < span class = "icon-label" > { { t "entry.comments.label" } } < / span > < / a >
2018-04-30 02:43:40 +02:00
< / li >
{ { end } }
2018-01-19 05:23:26 +01:00
< / ul >
< / div >
2020-01-07 07:02:02 +01:00
{ { end } }
` ,
2017-11-20 06:10:04 +01:00
"layout" : ` { { define "base" } }
< ! DOCTYPE html >
< html >
< head >
< meta charset = "utf-8" >
2018-07-19 07:30:05 +02:00
< title > { { template "title" . } } - Miniflux < / title >
2017-12-16 06:28:54 +01:00
2018-07-19 07:30:05 +02:00
< meta http - equiv = "X-UA-Compatible" content = "IE=edge" >
2017-12-03 00:01:05 +01:00
< meta name = "viewport" content = "width=device-width, initial-scale=1.0, user-scalable=no" >
2017-12-16 06:28:54 +01:00
< meta name = "mobile-web-app-capable" content = "yes" >
< meta name = "apple-mobile-web-app-title" content = "Miniflux" >
2019-07-05 08:13:25 +02:00
< link rel = "manifest" href = "{{ route " webManifest " }}" crossorigin = "use-credentials" / >
2017-12-16 06:28:54 +01:00
2017-11-20 06:10:04 +01:00
< meta name = "robots" content = "noindex,nofollow" >
< meta name = "referrer" content = "no-referrer" >
2019-10-30 07:06:25 +01:00
< meta name = "google" content = "notranslate" >
2017-12-16 06:28:54 +01:00
2018-07-19 06:30:54 +02:00
< ! -- Favicons -- >
< link rel = "icon" type = "image/png" sizes = "16x16" href = "{{ route " appIcon " " filename " " favicon - 16. png " }}" >
< link rel = "icon" type = "image/png" sizes = "32x32" href = "{{ route " appIcon " " filename " " favicon - 32. png " }}" >
< ! -- Android icons -- >
< link rel = "icon" type = "image/png" sizes = "128x128" href = "{{ route " appIcon " " filename " " icon - 128. png " }}" >
< link rel = "icon" type = "image/png" sizes = "192x192" href = "{{ route " appIcon " " filename " " icon - 192. png " }}" >
< ! -- iOS icons -- >
< link rel = "apple-touch-icon" sizes = "120x120" href = "{{ route " appIcon " " filename " " icon - 120. png " }}" >
< link rel = "apple-touch-icon" sizes = "152x152" href = "{{ route " appIcon " " filename " " icon - 152. png " }}" >
< link rel = "apple-touch-icon" sizes = "167x167" href = "{{ route " appIcon " " filename " " icon - 167. png " }}" >
< link rel = "apple-touch-icon" sizes = "180x180" href = "{{ route " appIcon " " filename " " icon - 180. png " }}" >
2017-12-16 06:28:54 +01:00
2017-11-20 06:10:04 +01:00
{ { if . csrf } }
< meta name = "X-CSRF-Token" value = "{{ .csrf }}" >
{ { end } }
2018-07-19 07:30:05 +02:00
< meta name = "theme-color" content = "{{ theme_color .theme }}" >
2018-07-22 21:24:46 +02:00
< link rel = "stylesheet" type = "text/css" href = "{{ route " stylesheet " " name " .theme }}?{{ .theme_checksum }}" >
2020-03-31 01:54:02 +02:00
{ { if . user } } { { if ne ( index . user . Extra "custom_css" ) ( "" ) } }
< link rel = "stylesheet" type = "text/css" href = "{{ route " stylesheet " " name " " custom_css " }}" >
{ { end } } { { end } }
2018-07-16 06:51:09 +02:00
2018-07-22 21:24:46 +02:00
< script type = "text/javascript" src = "{{ route " javascript " " name " " app " }}?{{ .app_js_checksum }}" defer > < / script >
< script type = "text/javascript" src = "{{ route " javascript " " name " " sw " }}?{{ .sw_js_checksum }}" defer id = "service-worker-script" > < / script >
2017-11-20 06:10:04 +01:00
< / head >
2019-04-29 03:20:46 +02:00
< body
data - entries - status - url = "{{ route " updateEntriesStatus " }}"
2020-05-27 06:35:44 +02:00
data - refresh - all - feeds - url = "{{ route " refreshAllFeeds " }}"
2019-04-29 03:20:46 +02:00
{ { if . user } } { { if not . user . KeyboardShortcuts } } data - disable - keyboard - shortcuts = "true" { { end } } { { end } } >
2019-10-07 05:55:15 +02:00
< div class = "toast-wrap" >
< span class = "toast-msg" > < / span >
< / div >
2017-11-20 06:10:04 +01:00
{ { if . user } }
< header class = "header" >
< nav >
< div class = "logo" >
< a href = "{{ route " unread " }}" > Mini < span > flux < / span > < / a >
< / div >
< ul >
2018-09-22 03:53:29 +02:00
< li { { if eq . menu "unread" } } class = "active" { { end } } title = "{{ t " tooltip . keyboard_shortcuts " " g u " }}" >
< a href = "{{ route " unread " }}" data - page = "unread" > { { t "menu.unread" } }
2018-05-21 12:38:44 +02:00
{ { if gt . countUnread 0 } }
< span class = "unread-counter-wrapper" > ( < span class = "unread-counter" > { { . countUnread } } < / span > ) < / span >
{ { end } }
< / a >
2017-11-20 06:10:04 +01:00
< / li >
2018-09-22 03:53:29 +02:00
< li { { if eq . menu "starred" } } class = "active" { { end } } title = "{{ t " tooltip . keyboard_shortcuts " " g b " }}" >
< a href = "{{ route " starred " }}" data - page = "starred" > { { t "menu.starred" } } < / a >
2017-12-22 20:33:01 +01:00
< / li >
2018-09-22 03:53:29 +02:00
< li { { if eq . menu "history" } } class = "active" { { end } } title = "{{ t " tooltip . keyboard_shortcuts " " g h " }}" >
< a href = "{{ route " history " }}" data - page = "history" > { { t "menu.history" } } < / a >
2017-11-20 06:10:04 +01:00
< / li >
2018-09-22 03:53:29 +02:00
< li { { if eq . menu "feeds" } } class = "active" { { end } } title = "{{ t " tooltip . keyboard_shortcuts " " g f " }}" >
< a href = "{{ route " feeds " }}" data - page = "feeds" > { { t "menu.feeds" } }
2018-08-27 01:18:07 +02:00
{ { if gt . countErrorFeeds 0 } }
< span class = "error-feeds-counter-wrapper" > ( < span class = "error-feeds-counter" > { { . countErrorFeeds } } < / span > ) < / span >
{ { end } }
< / a >
2017-11-20 06:10:04 +01:00
< / li >
2018-09-22 03:53:29 +02:00
< li { { if eq . menu "categories" } } class = "active" { { end } } title = "{{ t " tooltip . keyboard_shortcuts " " g c " }}" >
< a href = "{{ route " categories " }}" data - page = "categories" > { { t "menu.categories" } } < / a >
2017-11-20 06:10:04 +01:00
< / li >
2018-09-22 03:53:29 +02:00
< li { { if eq . menu "settings" } } class = "active" { { end } } title = "{{ t " tooltip . keyboard_shortcuts " " g s " }}" >
< a href = "{{ route " settings " }}" data - page = "settings" > { { t "menu.settings" } } < / a >
2017-11-20 06:10:04 +01:00
< / li >
< li >
2018-09-22 03:53:29 +02:00
< a href = "{{ route " logout " }}" title = "{{ t " tooltip . logged_user " .user.Username }}" > { { t "menu.logout" } } < / a >
2017-11-20 06:10:04 +01:00
< / li >
< / ul >
2018-07-05 07:05:19 +02:00
< div class = "search" >
< div class = "search-toggle-switch {{ if $.searchQuery }}has-search-query{{ end }}" >
2018-09-22 03:53:29 +02:00
< a href = "#" data - action = "search" > & laquo ; & nbsp ; { { t "search.label" } } < / a >
2018-07-05 07:05:19 +02:00
< / div >
< form action = "{{ route " searchEntries " }}" class = "search-form {{ if $.searchQuery }}has-search-query{{ end }}" >
2018-09-22 03:53:29 +02:00
< input type = "search" name = "q" id = "search-input" placeholder = "{{ t " search . placeholder " }}" { { if $ . searchQuery } } value = "{{ .searchQuery }}" { { end } } required >
2018-07-05 07:05:19 +02:00
< / form >
< / div >
2017-11-20 06:10:04 +01:00
< / nav >
< / header >
{ { end } }
2017-12-17 03:07:53 +01:00
{ { if . flashMessage } }
< div class = "flash-message alert alert-success" > { { . flashMessage } } < / div >
{ { end } }
{ { if . flashErrorMessage } }
< div class = "flash-error-message alert alert-error" > { { . flashErrorMessage } } < / div >
{ { end } }
2017-12-03 02:04:01 +01:00
< main >
2017-11-20 06:10:04 +01:00
{ { template "content" . } }
2017-12-03 02:04:01 +01:00
< / main >
2017-12-29 01:27:54 +01:00
< template id = "keyboard-shortcuts" >
< div id = "modal-left" >
< a href = "#" class = "btn-close-modal" > x < / a >
2018-09-22 03:53:29 +02:00
< h3 > { { t "page.keyboard_shortcuts.title" } } < / h3 >
2017-12-29 01:27:54 +01:00
< div class = "keyboard-shortcuts" >
2018-09-22 03:53:29 +02:00
< p > { { t "page.keyboard_shortcuts.subtitle.sections" } } < / p >
2017-12-29 01:27:54 +01:00
< ul >
2018-09-22 03:53:29 +02:00
< li > { { t "page.keyboard_shortcuts.go_to_unread" } } = < strong > g + u < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.go_to_starred" } } = < strong > g + b < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.go_to_history" } } = < strong > g + h < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.go_to_feeds" } } = < strong > g + f < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.go_to_categories" } } = < strong > g + c < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.go_to_settings" } } = < strong > g + s < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.show_keyboard_shortcuts" } } = < strong > ? < / strong > < / li >
2017-12-29 01:27:54 +01:00
< / ul >
2018-09-22 03:53:29 +02:00
< p > { { t "page.keyboard_shortcuts.subtitle.items" } } < / p >
2017-12-29 01:27:54 +01:00
< ul >
2019-05-26 20:02:52 +02:00
< li > { { t "page.keyboard_shortcuts.go_to_previous_item" } } = < strong > p < / strong > , < strong > k < / strong > , < strong > ◄ < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.go_to_next_item" } } = < strong > n < / strong > , < strong > j < / strong > , < strong > ► < / strong > < / li >
2018-10-14 16:28:24 +02:00
< li > { { t "page.keyboard_shortcuts.go_to_feed" } } = < strong > g + f < / strong > < / li >
2017-12-29 01:27:54 +01:00
< / ul >
2018-09-22 03:53:29 +02:00
< p > { { t "page.keyboard_shortcuts.subtitle.pages" } } < / p >
2017-12-29 01:27:54 +01:00
< ul >
2018-09-22 03:53:29 +02:00
< li > { { t "page.keyboard_shortcuts.go_to_previous_page" } } = < strong > h < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.go_to_next_page" } } = < strong > l < / strong > < / li >
2017-12-29 01:27:54 +01:00
< / ul >
2018-09-22 03:53:29 +02:00
< p > { { t "page.keyboard_shortcuts.subtitle.actions" } } < / p >
2017-12-29 01:27:54 +01:00
< ul >
2018-09-22 03:53:29 +02:00
< li > { { t "page.keyboard_shortcuts.open_item" } } = < strong > o < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.open_original" } } = < strong > v < / strong > < / li >
2019-11-29 22:48:56 +01:00
< li > { { t "page.keyboard_shortcuts.open_original_same_window" } } = < strong > V < / strong > < / li >
2020-01-07 07:02:02 +01:00
< li > { { t "page.keyboard_shortcuts.open_comments" } } = < strong > c < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.open_comments_same_window" } } = < strong > C < / strong > < / li >
2018-09-22 03:53:29 +02:00
< 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 >
< li > { { t "page.keyboard_shortcuts.toggle_bookmark_status" } } = < strong > f < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.save_article" } } = < strong > s < / strong > < / li >
2020-05-27 06:35:44 +02:00
< li > { { t "page.keyboard_shortcuts.refresh_all_feeds" } } = < strong > R < / strong > < / li >
2018-10-14 00:43:09 +02:00
< li > { { t "page.keyboard_shortcuts.remove_feed" } } = < strong > # < / strong > < / li >
2018-09-22 03:53:29 +02:00
< li > { { t "page.keyboard_shortcuts.go_to_search" } } = < strong > / < / strong > < / li >
< li > { { t "page.keyboard_shortcuts.close_modal" } } = < strong > Esc < / strong > < / li >
2017-12-29 01:27:54 +01:00
< / ul >
< / div >
< / div >
< / template >
2017-11-20 06:10:04 +01:00
< / body >
< / html >
2018-01-19 05:23:26 +01:00
{ { end } }
` ,
2017-11-20 06:10:04 +01:00
"pagination" : ` { { define "pagination" } }
< div class = "pagination" >
< div class = "pagination-prev" >
{ { if . ShowPrev } }
2020-03-02 02:38:29 +01:00
< a href = "{{ .Route }}{{ if gt .PrevOffset 0 }}?offset={{ .PrevOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}{{ else }}{{ if .SearchQuery }}?q={{ .SearchQuery }}{{ end }}{{ end }}" data - page = "previous" rel = "prev" > { { t "pagination.previous" } } < / a >
2017-11-20 06:10:04 +01:00
{ { else } }
2018-09-22 03:53:29 +02:00
{ { t "pagination.previous" } }
2017-11-20 06:10:04 +01:00
{ { end } }
< / div >
< div class = "pagination-next" >
{ { if . ShowNext } }
2020-03-02 02:38:29 +01:00
< a href = "{{ .Route }}?offset={{ .NextOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}" data - page = "next" rel = "next" > { { t "pagination.next" } } < / a >
2017-11-20 06:10:04 +01:00
{ { else } }
2018-09-22 03:53:29 +02:00
{ { t "pagination.next" } }
2017-11-20 06:10:04 +01:00
{ { end } }
< / div >
< / div >
{ { end } }
` ,
2019-11-18 02:26:47 +01:00
"settings_menu" : ` { { define "settings_menu" } }
< ul >
< li >
< a href = "{{ route " settings " }}" > { { t "menu.settings" } } < / a >
< / li >
< li >
< a href = "{{ route " integrations " }}" > { { t "menu.integrations" } } < / a >
< / li >
2020-03-02 02:38:29 +01:00
< li >
< a href = "{{ route " apiKeys " }}" > { { t "menu.api_keys" } } < / a >
< / li >
2019-11-18 02:26:47 +01:00
< li >
< a href = "{{ route " sessions " }}" > { { t "menu.sessions" } } < / a >
< / li >
{ { if . user . IsAdmin } }
< li >
< a href = "{{ route " users " }}" > { { t "menu.users" } } < / a >
< / li >
{ { end } }
< li >
< a href = "{{ route " about " }}" > { { t "menu.about" } } < / a >
< / li >
< / ul >
{ { end } } ` ,
2017-11-20 06:10:04 +01:00
}
var templateCommonMapChecksums = map [ string ] string {
2020-03-02 02:38:29 +01:00
"entry_pagination" : "cdca9cf12586e41e5355190b06d9168f57f77b85924d1e63b13524bc15abcbf6" ,
2020-09-10 08:28:54 +02:00
"feed_list" : "931e43d328a116318c510de5658c688cd940b934c86b6ec82a472e1f81e020ae" ,
2020-01-02 22:03:34 +01:00
"feed_menu" : "318d8662dda5ca9dfc75b909c8461e79c86fb5082df1428f67aaf856f19f4b50" ,
2020-06-15 04:00:41 +02:00
"icons" : "3dbe754a98f524a227111191d76b8c6944711b13613cc548ee9e9808fe0bffb4" ,
2020-07-29 05:51:55 +02:00
"item_meta" : "8306adf3ef9966de3e3dc74ca1042e51d778b027ab8cf0a60a2e94a0115982dc" ,
2020-05-27 06:35:44 +02:00
"layout" : "91d2ab3f683a2ced5e9ce5cd04919e74b3e3f329a5eedcc60015b8d49ecb1b77" ,
2020-03-02 02:38:29 +01:00
"pagination" : "7b61288e86283c4cf0dc83bcbf8bf1c00c7cb29e60201c8c0b633b2450d2911f" ,
"settings_menu" : "e2b777630c0efdbc529800303c01d6744ed3af80ec505ac5a5b3f99c9b989156" ,
2017-11-20 06:10:04 +01:00
}