diff options
author | Daniel Schadt <kingdread@gmx.de> | 2024-04-17 21:44:52 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2024-04-17 21:44:52 +0200 |
commit | f6272fbe9977f89835ec6d9c0fdf915deee060b8 (patch) | |
tree | bb16ea237af9a7784ec998c48500d63afaf43214 | |
parent | 8c9a4066472d56e2adf1708e46c8668bc38ec1dd (diff) | |
download | fietsboek-f6272fbe9977f89835ec6d9c0fdf915deee060b8.tar.gz fietsboek-f6272fbe9977f89835ec6d9c0fdf915deee060b8.tar.bz2 fietsboek-f6272fbe9977f89835ec6d9c0fdf915deee060b8.zip |
add number of images and comments to browse view
-rw-r--r-- | fietsboek/locale/de/LC_MESSAGES/messages.mo | bin | 15685 -> 15785 bytes | |||
-rw-r--r-- | fietsboek/locale/de/LC_MESSAGES/messages.po | 20 | ||||
-rw-r--r-- | fietsboek/locale/en/LC_MESSAGES/messages.mo | bin | 14656 -> 14754 bytes | |||
-rw-r--r-- | fietsboek/locale/en/LC_MESSAGES/messages.po | 20 | ||||
-rw-r--r-- | fietsboek/locale/fietslog.pot | 20 | ||||
-rw-r--r-- | fietsboek/templates/browse.jinja2 | 6 |
6 files changed, 48 insertions, 18 deletions
diff --git a/fietsboek/locale/de/LC_MESSAGES/messages.mo b/fietsboek/locale/de/LC_MESSAGES/messages.mo Binary files differindex 0633a4c..c2fd61b 100644 --- a/fietsboek/locale/de/LC_MESSAGES/messages.mo +++ b/fietsboek/locale/de/LC_MESSAGES/messages.mo diff --git a/fietsboek/locale/de/LC_MESSAGES/messages.po b/fietsboek/locale/de/LC_MESSAGES/messages.po index b7125af..98f05e7 100644 --- a/fietsboek/locale/de/LC_MESSAGES/messages.po +++ b/fietsboek/locale/de/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-04-06 21:57+0200\n" +"POT-Creation-Date: 2024-04-17 21:42+0200\n" "PO-Revision-Date: 2022-07-02 17:35+0200\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language: de\n" @@ -243,15 +243,23 @@ msgstr "maximale Geschwindigkeit" msgid "page.details.avg_speed" msgstr "durchschnittliche Geschwindigkeit" -#: fietsboek/templates/browse.jinja2:205 +#: fietsboek/templates/browse.jinja2:192 +msgid "page.browse.card.comments" +msgstr "Kommentare" + +#: fietsboek/templates/browse.jinja2:194 +msgid "page.browse.card.images" +msgstr "Bilder" + +#: fietsboek/templates/browse.jinja2:211 msgid "page.browse.download_multiple" msgstr "ausgewählte Herunterladen" -#: fietsboek/templates/browse.jinja2:207 +#: fietsboek/templates/browse.jinja2:213 msgid "page.browse.no_results" msgstr "Es wurden keine Strecken gefunden, die den Filtern entsprechen." -#: fietsboek/templates/browse.jinja2:209 +#: fietsboek/templates/browse.jinja2:215 msgid "page.browse.no_tracks" msgstr "" "Es wurden keine Strecken gefunden, auf die Du Zugriff hast. Versuche, " @@ -520,13 +528,13 @@ msgstr "" "Links, um sie fortzusetzen:" #: fietsboek/templates/home.jinja2:31 fietsboek/templates/home.jinja2:38 -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.summary.track" msgid_plural "page.home.summary.tracks" msgstr[0] "%(num)d Strecke" msgstr[1] "%(num)d Strecken" -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.total" msgstr "Gesamt" diff --git a/fietsboek/locale/en/LC_MESSAGES/messages.mo b/fietsboek/locale/en/LC_MESSAGES/messages.mo Binary files differindex cc713cb..1390daa 100644 --- a/fietsboek/locale/en/LC_MESSAGES/messages.mo +++ b/fietsboek/locale/en/LC_MESSAGES/messages.mo diff --git a/fietsboek/locale/en/LC_MESSAGES/messages.po b/fietsboek/locale/en/LC_MESSAGES/messages.po index 5e1762c..f4cacb5 100644 --- a/fietsboek/locale/en/LC_MESSAGES/messages.po +++ b/fietsboek/locale/en/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-04-06 21:57+0200\n" +"POT-Creation-Date: 2024-04-17 21:42+0200\n" "PO-Revision-Date: 2023-04-03 20:42+0200\n" "Last-Translator: \n" "Language: en\n" @@ -243,15 +243,23 @@ msgstr "Max Speed" msgid "page.details.avg_speed" msgstr "Average Speed" -#: fietsboek/templates/browse.jinja2:205 +#: fietsboek/templates/browse.jinja2:192 +msgid "page.browse.card.comments" +msgstr "Comments" + +#: fietsboek/templates/browse.jinja2:194 +msgid "page.browse.card.images" +msgstr "Images" + +#: fietsboek/templates/browse.jinja2:211 msgid "page.browse.download_multiple" msgstr "Download selected" -#: fietsboek/templates/browse.jinja2:207 +#: fietsboek/templates/browse.jinja2:213 msgid "page.browse.no_results" msgstr "No results matching the filters were found." -#: fietsboek/templates/browse.jinja2:209 +#: fietsboek/templates/browse.jinja2:215 msgid "page.browse.no_tracks" msgstr "You currently do not have access to any tracks. Try logging in." @@ -514,13 +522,13 @@ msgid "page.home.unfinished_uploads" msgstr "You have unfinished uploads. Click on the links below to resume them:" #: fietsboek/templates/home.jinja2:31 fietsboek/templates/home.jinja2:38 -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.summary.track" msgid_plural "page.home.summary.tracks" msgstr[0] "%(num)d track" msgstr[1] "%(num)d tracks" -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.total" msgstr "Total" diff --git a/fietsboek/locale/fietslog.pot b/fietsboek/locale/fietslog.pot index 747cd78..a3dea70 100644 --- a/fietsboek/locale/fietslog.pot +++ b/fietsboek/locale/fietslog.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2024-04-06 21:57+0200\n" +"POT-Creation-Date: 2024-04-17 21:42+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -239,15 +239,23 @@ msgstr "" msgid "page.details.avg_speed" msgstr "" -#: fietsboek/templates/browse.jinja2:205 +#: fietsboek/templates/browse.jinja2:192 +msgid "page.browse.card.comments" +msgstr "" + +#: fietsboek/templates/browse.jinja2:194 +msgid "page.browse.card.images" +msgstr "" + +#: fietsboek/templates/browse.jinja2:211 msgid "page.browse.download_multiple" msgstr "" -#: fietsboek/templates/browse.jinja2:207 +#: fietsboek/templates/browse.jinja2:213 msgid "page.browse.no_results" msgstr "" -#: fietsboek/templates/browse.jinja2:209 +#: fietsboek/templates/browse.jinja2:215 msgid "page.browse.no_tracks" msgstr "" @@ -508,13 +516,13 @@ msgid "page.home.unfinished_uploads" msgstr "" #: fietsboek/templates/home.jinja2:31 fietsboek/templates/home.jinja2:38 -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.summary.track" msgid_plural "page.home.summary.tracks" msgstr[0] "" msgstr[1] "" -#: fietsboek/templates/home.jinja2:66 +#: fietsboek/templates/home.jinja2:82 msgid "page.home.total" msgstr "" diff --git a/fietsboek/templates/browse.jinja2 b/fietsboek/templates/browse.jinja2 index 1eae88d..a67f8fb 100644 --- a/fietsboek/templates/browse.jinja2 +++ b/fietsboek/templates/browse.jinja2 @@ -188,6 +188,12 @@ <td>{{ mps_to_kph(track.avg_speed) | round(2) | format_decimal }} km/h</td> </tr> {% endif %} + <tr> + <th scope="row"><i class="bi bi-chat-left-text-fill"></i> {{ _("page.browse.card.comments") }}</th> + <td>{{ track.comments | length }}</td> + <th scope="row"><i class="bi bi-image"></i> {{ _("page.browse.card.images") }}</th> + <td>{{ track.images | length }}</td> + </tr> </tbody> </table> |