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 } }
2018-09-22 03:53:29 +02:00
< a href = "{{ .prevEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title = "{{ .prevEntry.Title }}" data - page = "previous" > { { 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 } }
2018-09-22 03:53:29 +02:00
< a href = "{{ .nextEntryRoute }}{{ if .searchQuery }}?q={{ .searchQuery }}{{ end }}" title = "{{ .nextEntry.Title }}" data - page = "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 >
2019-11-18 04:44:12 +01:00
{ { end } } ` ,
"feed_list" : ` { { define "feed_list" } }
< div class = "items" >
{ { range . feeds } }
< article class = "item {{ if ne .ParsingErrorCount 0 }}feed-parsing-error{{ end }}" >
< div class = "item-header" >
< 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" >
< ul >
< li >
< a href = "{{ .SiteURL }}" title = "{{ .SiteURL }}" target = "_blank" rel = "noopener noreferrer" referrerpolicy = "no-referrer" data - original - link = "true" > { { domain . SiteURL } } < / a >
< / li >
< li >
{ { t "page.feeds.last_check" } } < time datetime = "{{ isodate .CheckedAt }}" title = "{{ isodate .CheckedAt }}" > { { elapsed $ . user . Timezone . CheckedAt } } < / time >
< / li >
< / ul >
< ul >
< li >
< a href = "{{ route " refreshFeed " " feedID " .ID }}" > { { t "menu.refresh_feed" } } < / a >
< / li >
< li >
< a href = "{{ route " editFeed " " feedID " .ID }}" > { { t "menu.edit_feed" } } < / a >
< / 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 " }}"
data - url = "{{ route " removeFeed " " feedID " .ID }}" > { { t "action.remove" } } < / a >
< / li >
< / 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 >
2018-01-19 05:23:26 +01:00
{ { end } } ` ,
"item_meta" : ` { { define "item_meta" } }
< div class = "item-meta" >
< ul >
< 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 >
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 " }}"
> { { t "entry.save.label" } } < / a >
2018-04-30 02:43:40 +02:00
< / li >
{ { end } }
2018-01-19 05:23:26 +01:00
< li >
2018-09-22 03:53:29 +02:00
< a href = "{{ .entry.URL }}" target = "_blank" rel = "noopener noreferrer" referrerpolicy = "no-referrer" data - original - link = "true" > { { t "entry.original.label" } } < / a >
2018-01-19 05:23:26 +01:00
< / li >
2018-04-30 02:43:40 +02:00
{ { if . entry . CommentsURL } }
< li >
2018-09-22 03:53:29 +02:00
< a href = "{{ .entry.CommentsURL }}" title = "{{ t " entry . comments . title " }}" target = "_blank" rel = "noopener noreferrer" referrerpolicy = "no-referrer" > { { t "entry.comments.label" } } < / a >
2018-04-30 02:43:40 +02:00
< / li >
{ { end } }
2018-01-19 05:23:26 +01:00
< li >
< a href = "#"
data - toggle - bookmark = "true"
2018-02-04 23:37:42 +01:00
data - bookmark - url = "{{ route " toggleBookmark " " entryID " .entry.ID }}"
2018-09-22 03:53:29 +02:00
data - label - loading = "{{ t " entry . state . saving " }}"
data - label - star = "☆ {{ t " entry . bookmark . toggle . on " }}"
data - label - unstar = "★ {{ t " entry . bookmark . toggle . off " }}"
2018-02-04 23:37:42 +01:00
data - value = "{{ if .entry.Starred }}star{{ else }}unstar{{ end }}"
2018-09-22 03:53:29 +02:00
> { { if . entry . Starred } } ★ & nbsp ; { { t "entry.bookmark.toggle.off" } } { { else } } ☆ & nbsp ; { { t "entry.bookmark.toggle.on" } } { { end } } < / a >
2018-01-19 05:23:26 +01:00
< / li >
< li >
< a href = "#"
2018-09-22 03:53:29 +02:00
title = "{{ t " entry . status . title " }}"
2018-01-19 05:23:26 +01:00
data - toggle - status = "true"
2018-09-22 03:53:29 +02:00
data - label - read = "✔︎ {{ t " entry . status . read " }}"
data - label - unread = "✘ {{ t " entry . status . unread " }}"
2018-02-04 23:37:42 +01:00
data - value = "{{ if eq .entry.Status " read " }}read{{ else }}unread{{ end }}"
2018-09-22 03:53:29 +02:00
> { { if eq . entry . Status "read" } } ✘ & nbsp ; { { t "entry.status.unread" } } { { else } } ✔ & # xfe0e ; & nbsp ; { { t "entry.status.read" } } { { end } } < / a >
2018-01-19 05:23:26 +01:00
< / li >
< / ul >
< / div >
2017-11-20 06:10:04 +01:00
{ { end } } ` ,
"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 }}" >
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 " }}"
{ { 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 >
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 >
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 } }
2018-09-22 03:53:29 +02: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" > { { 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 } }
2018-09-22 03:53:29 +02:00
< a href = "{{ .Route }}?offset={{ .NextOffset }}{{ if .SearchQuery }}&q={{ .SearchQuery }}{{ end }}" data - page = "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 >
< li >
< a href = "{{ route " sessions " }}" > { { t "menu.sessions" } } < / a >
< / li >
{ { if . user . IsAdmin } }
< li >
< a href = "{{ route " users " }}" > { { t "menu.users" } } < / a >
< / li >
< li >
< a href = "{{ route " createUser " }}" > { { t "menu.add_user" } } < / 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 {
2018-09-22 03:53:29 +02:00
"entry_pagination" : "4faa91e2eae150c5e4eab4d258e039dfdd413bab7602f0009360e6d52898e353" ,
2019-11-18 04:44:12 +01:00
"feed_list" : "7b7ea2c7df07d048c83d86237d5b5e41bddce561273c652d9265950093ca261b" ,
2018-09-22 03:53:29 +02:00
"item_meta" : "34deb081a054f2948ad808bdb2c8603d6ab00c58f2f50c4ead0b47ae092888eb" ,
2019-11-29 22:48:56 +01:00
"layout" : "f19597d8cd74e17b33826c25b8421f46fef87276f0d95c695bba8f53bb4f95e6" ,
2018-09-22 03:53:29 +02:00
"pagination" : "3386e90c6e1230311459e9a484629bc5d5bf39514a75ef2e73bbbc61142f7abb" ,
2019-11-18 02:26:47 +01:00
"settings_menu" : "78e5a487ede18610b23db74184dab023170f9e083cc0625bc2c874d1eea1a4ce" ,
2017-11-20 06:10:04 +01:00
}