diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-11-17 17:54:42 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2019-11-17 18:04:14 -0800 |
commit | 15fe9c20df7eaab4c1e10461f1a9965eeaf85f0f (patch) | |
tree | 54275eb56eea8adcbe2436e30bc352d0bc3bcba8 | |
parent | 789ad8257a84dfaa973ffa5e547cd419d933253d (diff) |
Show the number of read and unread entries for each feed
-rw-r--r-- | locale/translations.go | 45 | ||||
-rw-r--r-- | locale/translations/de_DE.json | 3 | ||||
-rw-r--r-- | locale/translations/en_US.json | 3 | ||||
-rw-r--r-- | locale/translations/es_ES.json | 3 | ||||
-rw-r--r-- | locale/translations/fr_FR.json | 3 | ||||
-rw-r--r-- | locale/translations/it_IT.json | 3 | ||||
-rw-r--r-- | locale/translations/nl_NL.json | 3 | ||||
-rw-r--r-- | locale/translations/pl_PL.json | 3 | ||||
-rw-r--r-- | locale/translations/ru_RU.json | 3 | ||||
-rw-r--r-- | locale/translations/zh_CN.json | 3 | ||||
-rw-r--r-- | template/html/feeds.html | 8 | ||||
-rw-r--r-- | template/views.go | 10 |
12 files changed, 52 insertions, 38 deletions
diff --git a/locale/translations.go b/locale/translations.go index 5fa0105..b0e09b3 100644 --- a/locale/translations.go +++ b/locale/translations.go @@ -86,7 +86,8 @@ var translations = map[string]string{ "page.edit_user.title": "Benutzer bearbeiten: %s", "page.feeds.title": "Abonnements", "page.feeds.last_check": "Letzte Aktualisierung:", - "page.feeds.unread": "Ungelesen:", + "page.feeds.unread_counter": "Anzahl der ungelesenen Einträge", + "page.feeds.read_counter": "Anzahl der gelesenen Einträge", "page.feeds.error_count": [ "%d Fehler", "%d Fehler" @@ -388,7 +389,8 @@ var translations = map[string]string{ "page.edit_user.title": "Edit User: %s", "page.feeds.title": "Feeds", "page.feeds.last_check": "Last check:", - "page.feeds.unread": "Unread:", + "page.feeds.unread_counter": "Number of unread entries", + "page.feeds.read_counter": "Number of read entries", "page.feeds.error_count": [ "%d error", "%d errors" @@ -670,7 +672,8 @@ var translations = map[string]string{ "page.edit_user.title": "Editar usuario: %s", "page.feeds.title": "Fuentes", "page.feeds.last_check": "Última verificación:", - "page.feeds.unread": "No leídos:", + "page.feeds.unread_counter": "Número de entradas no leídas", + "page.feeds.read_counter": "Número de entradas leídas", "page.feeds.error_count": [ "%d error", "%d errores" @@ -952,7 +955,8 @@ var translations = map[string]string{ "page.edit_user.title": "Modification de l'utilisateur : %s", "page.feeds.title": "Abonnements", "page.feeds.last_check": "Dernière vérification :", - "page.feeds.unread": "Non lus:", + "page.feeds.unread_counter": "Nombre d'entrées non lues", + "page.feeds.read_counter": "Nombre d'entrées lues", "page.feeds.error_count": [ "%d erreur", "%d erreurs" @@ -1254,7 +1258,8 @@ var translations = map[string]string{ "page.edit_user.title": "Modifica utente: %s", "page.feeds.title": "Feed", "page.feeds.last_check": "Ultimo controllo:", - "page.feeds.unread": "Da leggere:", + "page.feeds.unread_counter": "Numero di voci non lette", + "page.feeds.read_counter": "Numero di voci lette", "page.feeds.error_count": [ "%d errore", "%d errori" @@ -1536,7 +1541,8 @@ var translations = map[string]string{ "page.edit_user.title": "Bewerk gebruiker: %s", "page.feeds.title": "Feeds", "page.feeds.last_check": "Laatste update:", - "page.feeds.unread": "Ongelezen:", + "page.feeds.unread_counter": "Aantal ongelezen vermeldingen", + "page.feeds.read_counter": "Aantal gelezen vermeldingen", "page.feeds.error_count": [ "%d error", "%d errors" @@ -1837,7 +1843,8 @@ var translations = map[string]string{ "page.edit_user.title": "Edytuj użytkownika: %s", "page.feeds.title": "Kanały", "page.feeds.last_check": "Ostatnia aktualizacja:", - "page.feeds.unread": "Nieprzeczytane:", + "page.feeds.unread_counter": "Liczba nieprzeczytanych wpisów", + "page.feeds.read_counter": "Liczba przeczytanych wpisów", "page.feeds.error_count": [ "%d błąd", "%d błąd", @@ -2145,7 +2152,8 @@ var translations = map[string]string{ "page.edit_user.title": "Изменить пользователя: %s", "page.feeds.title": "Подписки", "page.feeds.last_check": "Последняя проверка:", - "page.feeds.unread": "Непрочитано:", + "page.feeds.unread_counter": "Количество непрочитанных записей", + "page.feeds.read_counter": "Количество прочитанных записей", "page.feeds.error_count": [ "%d ошибка", "%d ошибки", @@ -2433,7 +2441,8 @@ var translations = map[string]string{ "page.edit_user.title": "编辑用户 : %s", "page.feeds.title": "源", "page.feeds.last_check": "最后检查时间:", - "page.feeds.unread": "未读:", + "page.feeds.unread_counter": "未读条目数", + "page.feeds.read_counter": "读取条目数", "page.feeds.error_count": [ "%d 错误" ], @@ -2647,13 +2656,13 @@ var translations = map[string]string{ } var translationsChecksums = map[string]string{ - "de_DE": "805b758dbe45e62583375c8ecdbbc48019ff9745e4a6f4bc481ad7cb8bf79005", - "en_US": "7992fd4e6fafceccbcf0b0972f0c085ad9a0eb7507de60eac407882c1f6457f5", - "es_ES": "e97765769afac01f4fd4cf868fa75657bd4d4e63999d9145a42d4de4248a9b2a", - "fr_FR": "50146f82d9b8e9ab69a5b3950827f7db47ba590ef074cf7f78b18f7e26fb0074", - "it_IT": "6a9f44c98b0dc8ab34306868bb9f93c4e511579a45c1fa8a48d637e10b2feca6", - "nl_NL": "afa731bd75e18b9483e9c6842b647f9d85405994ceca42f24b314bc967680606", - "pl_PL": "40aa0998688fb8dc1a308cda35bcea04be16c852944088c844c676c601a90bbd", - "ru_RU": "a1c72bb9ab48cf1b4fb47bfed081df75e391bb8d5c8b70036c1bdd38c57b6cb3", - "zh_CN": "a349de59436db0dc07172de89a481d95a660af206b13ae0de236a0cb8e31014b", + "de_DE": "ec2dd4be11e4bb29efaa6cd124a1edd2e5271889d31d7fda92781be014388387", + "en_US": "8010481cea76d28aad37c00fb0f481514f81c1581a6172b4a4ad17ad61e2eee0", + "es_ES": "be58c4452068277826022931d86bd561fe150250756a6254985de5aa6d8129b7", + "fr_FR": "4d3fa6084994a7b3121dd9c1f3baf8c1b0e519f6012aeaa805e5132ec1eaa60e", + "it_IT": "3246b020b7ea01f762f19c9ee2825605b0e42f6ffdd34fd6306193597650f8d7", + "nl_NL": "c58d1100bcd345824086d0df255381f7789379d0e2b95e146be009ad82e0aa5f", + "pl_PL": "b438c4119ed5685950293f5c3c629a940c6475ca243c53f65879dfca6fc8cdd6", + "ru_RU": "5b42510b54c678563791010f4c1fad1a024fa7029d268667bbfde1e7a1f02d88", + "zh_CN": "30f72b341911682877bb86b0e82e9127be833625502ae41e9530447bb2f27de3", } diff --git a/locale/translations/de_DE.json b/locale/translations/de_DE.json index 9121e47..83325e0 100644 --- a/locale/translations/de_DE.json +++ b/locale/translations/de_DE.json @@ -81,7 +81,8 @@ "page.edit_user.title": "Benutzer bearbeiten: %s", "page.feeds.title": "Abonnements", "page.feeds.last_check": "Letzte Aktualisierung:", - "page.feeds.unread": "Ungelesen:", + "page.feeds.unread_counter": "Anzahl der ungelesenen Einträge", + "page.feeds.read_counter": "Anzahl der gelesenen Einträge", "page.feeds.error_count": [ "%d Fehler", "%d Fehler" diff --git a/locale/translations/en_US.json b/locale/translations/en_US.json index 576c144..c86e3e2 100644 --- a/locale/translations/en_US.json +++ b/locale/translations/en_US.json @@ -81,7 +81,8 @@ "page.edit_user.title": "Edit User: %s", "page.feeds.title": "Feeds", "page.feeds.last_check": "Last check:", - "page.feeds.unread": "Unread:", + "page.feeds.unread_counter": "Number of unread entries", + "page.feeds.read_counter": "Number of read entries", "page.feeds.error_count": [ "%d error", "%d errors" diff --git a/locale/translations/es_ES.json b/locale/translations/es_ES.json index a1973d6..ba8f076 100644 --- a/locale/translations/es_ES.json +++ b/locale/translations/es_ES.json @@ -81,7 +81,8 @@ "page.edit_user.title": "Editar usuario: %s", "page.feeds.title": "Fuentes", "page.feeds.last_check": "Última verificación:", - "page.feeds.unread": "No leídos:", + "page.feeds.unread_counter": "Número de entradas no leídas", + "page.feeds.read_counter": "Número de entradas leídas", "page.feeds.error_count": [ "%d error", "%d errores" diff --git a/locale/translations/fr_FR.json b/locale/translations/fr_FR.json index 04fdc6f..052913c 100644 --- a/locale/translations/fr_FR.json +++ b/locale/translations/fr_FR.json @@ -81,7 +81,8 @@ "page.edit_user.title": "Modification de l'utilisateur : %s", "page.feeds.title": "Abonnements", "page.feeds.last_check": "Dernière vérification :", - "page.feeds.unread": "Non lus:", + "page.feeds.unread_counter": "Nombre d'entrées non lues", + "page.feeds.read_counter": "Nombre d'entrées lues", "page.feeds.error_count": [ "%d erreur", "%d erreurs" diff --git a/locale/translations/it_IT.json b/locale/translations/it_IT.json index 86d2d94..60daa20 100644 --- a/locale/translations/it_IT.json +++ b/locale/translations/it_IT.json @@ -81,7 +81,8 @@ "page.edit_user.title": "Modifica utente: %s", "page.feeds.title": "Feed", "page.feeds.last_check": "Ultimo controllo:", - "page.feeds.unread": "Da leggere:", + "page.feeds.unread_counter": "Numero di voci non lette", + "page.feeds.read_counter": "Numero di voci lette", "page.feeds.error_count": [ "%d errore", "%d errori" diff --git a/locale/translations/nl_NL.json b/locale/translations/nl_NL.json index ca82e2e..87e2e08 100644 --- a/locale/translations/nl_NL.json +++ b/locale/translations/nl_NL.json @@ -81,7 +81,8 @@ "page.edit_user.title": "Bewerk gebruiker: %s", "page.feeds.title": "Feeds", "page.feeds.last_check": "Laatste update:", - "page.feeds.unread": "Ongelezen:", + "page.feeds.unread_counter": "Aantal ongelezen vermeldingen", + "page.feeds.read_counter": "Aantal gelezen vermeldingen", "page.feeds.error_count": [ "%d error", "%d errors" diff --git a/locale/translations/pl_PL.json b/locale/translations/pl_PL.json index fc3bc3d..9fe141b 100644 --- a/locale/translations/pl_PL.json +++ b/locale/translations/pl_PL.json @@ -82,7 +82,8 @@ "page.edit_user.title": "Edytuj użytkownika: %s", "page.feeds.title": "Kanały", "page.feeds.last_check": "Ostatnia aktualizacja:", - "page.feeds.unread": "Nieprzeczytane:", + "page.feeds.unread_counter": "Liczba nieprzeczytanych wpisów", + "page.feeds.read_counter": "Liczba przeczytanych wpisów", "page.feeds.error_count": [ "%d błąd", "%d błąd", diff --git a/locale/translations/ru_RU.json b/locale/translations/ru_RU.json index ae5a68a..27ed092 100644 --- a/locale/translations/ru_RU.json +++ b/locale/translations/ru_RU.json @@ -82,7 +82,8 @@ "page.edit_user.title": "Изменить пользователя: %s", "page.feeds.title": "Подписки", "page.feeds.last_check": "Последняя проверка:", - "page.feeds.unread": "Непрочитано:", + "page.feeds.unread_counter": "Количество непрочитанных записей", + "page.feeds.read_counter": "Количество прочитанных записей", "page.feeds.error_count": [ "%d ошибка", "%d ошибки", diff --git a/locale/translations/zh_CN.json b/locale/translations/zh_CN.json index 99c74b5..8748695 100644 --- a/locale/translations/zh_CN.json +++ b/locale/translations/zh_CN.json @@ -80,7 +80,8 @@ "page.edit_user.title": "编辑用户 : %s", "page.feeds.title": "源", "page.feeds.last_check": "最后检查时间:", - "page.feeds.unread": "未读:", + "page.feeds.unread_counter": "未读条目数", + "page.feeds.read_counter": "读取条目数", "page.feeds.error_count": [ "%d 错误" ], diff --git a/template/html/feeds.html b/template/html/feeds.html index f676f23..7d4a428 100644 --- a/template/html/feeds.html +++ b/template/html/feeds.html @@ -33,6 +33,9 @@ {{ 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> @@ -45,11 +48,6 @@ <li> {{ t "page.feeds.last_check" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed $.user.Timezone .CheckedAt }}</time> </li> - {{ if gt .UnreadCount 0 }} - <li> - {{ t "page.feeds.unread" }} <span class="unread-counter">{{ .UnreadCount }}</span> - </li> - {{ end }} </ul> <ul> <li> diff --git a/template/views.go b/template/views.go index fbbbc88..788e2f5 100644 --- a/template/views.go +++ b/template/views.go @@ -789,6 +789,9 @@ var templateViewsMap = map[string]string{ {{ 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> @@ -801,11 +804,6 @@ var templateViewsMap = map[string]string{ <li> {{ t "page.feeds.last_check" }} <time datetime="{{ isodate .CheckedAt }}" title="{{ isodate .CheckedAt }}">{{ elapsed $.user.Timezone .CheckedAt }}</time> </li> - {{ if gt .UnreadCount 0 }} - <li> - {{ t "page.feeds.unread" }} <span class="unread-counter">{{ .UnreadCount }}</span> - </li> - {{ end }} </ul> <ul> <li> @@ -1374,7 +1372,7 @@ var templateViewsMapChecksums = map[string]string{ "edit_user": "c692db9de1a084c57b93e95a14b041d39bf489846cbb91fc982a62b72b77062a", "entry": "24aeba26ef9a51ce585ca5c4af090f1de7d7bfd7f1e3ff1b63af520e2afa76bd", "feed_entries": "9c70b82f55e4b311eff20be1641733612e3c1b406ce8010861e4c417d97b6dcc", - "feeds": "55317035a4c008a720294c1858e9dc626f19e222ae41498db67dbb537ba7a456", + "feeds": "f11ba1c45cf3966843ddc406d96e048fc8f2235428e10111a1660a141ea2c42f", "history_entries": "87e17d39de70eb3fdbc4000326283be610928758eae7924e4b08dcb446f3b6a9", "import": "5eb56cecaa4d369b9acc991a82be7617710c551089a2e99d34ce8b6e5c37df0a", "integrations": "6104ff6ff3ac3c1ae5e850c78250aab6e99e2342a337589f3848459fa333766a", |