From e699dba84378b71d4e0cd3de6f30a3a13b25a68d Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 10 May 2025 22:19:12 +0200 Subject: add preview images to storage breakdown --- fietsboek/locale/de/LC_MESSAGES/messages.mo | Bin 17659 -> 17734 bytes fietsboek/locale/de/LC_MESSAGES/messages.po | 116 +++++++++++++++------------- fietsboek/locale/en/LC_MESSAGES/messages.mo | Bin 16586 -> 16661 bytes fietsboek/locale/en/LC_MESSAGES/messages.po | 116 +++++++++++++++------------- fietsboek/locale/fietslog.pot | 114 ++++++++++++++------------- fietsboek/templates/admin_overview.jinja2 | 2 + fietsboek/views/admin.py | 2 + 7 files changed, 185 insertions(+), 165 deletions(-) diff --git a/fietsboek/locale/de/LC_MESSAGES/messages.mo b/fietsboek/locale/de/LC_MESSAGES/messages.mo index f2d0f60..a4bf218 100644 Binary files a/fietsboek/locale/de/LC_MESSAGES/messages.mo and b/fietsboek/locale/de/LC_MESSAGES/messages.mo differ diff --git a/fietsboek/locale/de/LC_MESSAGES/messages.po b/fietsboek/locale/de/LC_MESSAGES/messages.po index 3319052..2fbb199 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: 2025-05-06 21:46+0200\n" +"POT-Creation-Date: 2025-05-10 22:16+0200\n" "PO-Revision-Date: 2022-07-02 17:35+0200\n" "Last-Translator: FULL NAME \n" "Language: de\n" @@ -18,11 +18,11 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.15.0\n" -#: fietsboek/actions.py:267 +#: fietsboek/actions.py:278 msgid "email.verify_mail.subject" msgstr "Fietsboek Konto Bestätigung" -#: fietsboek/actions.py:270 +#: fietsboek/actions.py:281 msgid "email.verify.text" msgstr "" "Um Dein Fietsboek-Konto zu bestätigen, nutze diesen Link: {}\n" @@ -79,7 +79,9 @@ msgstr "Du hast keinen Zugang zu dieser Ressource." #: fietsboek/templates/403.jinja2:12 msgid "403.try_log_in" -msgstr "Falls Du Zugang haben solltest, stelle sicher, dass du korrekt angemeldet bist." +msgstr "" +"Falls Du Zugang haben solltest, stelle sicher, dass du korrekt angemeldet" +" bist." #: fietsboek/templates/404.jinja2:5 msgid "404.title" @@ -113,7 +115,7 @@ msgstr "Wappen" msgid "page.admin.badge.edit" msgstr "Bearbeiten" -#: fietsboek/templates/admin_badges.jinja2:27 +#: fietsboek/templates/admin_badges.jinja2:22 msgid "page.admin.badge.delete_badge" msgstr "Löschen" @@ -182,10 +184,14 @@ msgid "admin.overview.storage_graph.label.images" msgstr "Bilder" #: fietsboek/templates/admin_overview.jinja2:57 +msgid "admin.overview.storage_graph.label.previews" +msgstr "Vorschaubilder" + +#: fietsboek/templates/admin_overview.jinja2:58 msgid "admin.overview.storage_graph.label.user_maps" msgstr "Nutzerkarten" -#: fietsboek/templates/admin_overview.jinja2:82 +#: fietsboek/templates/admin_overview.jinja2:84 msgid "admin.overview.storage_graph.title" msgstr "Speicherübersicht" @@ -285,73 +291,73 @@ msgstr "Dies ist eine Aufnahme einer Strecke" msgid "page.browse.synthetic_tooltip" msgstr "Dies ist eine geplante Strecke" -#: fietsboek/templates/browse.jinja2:158 fietsboek/templates/details.jinja2:103 -#: fietsboek/templates/profile_overview.jinja2:16 +#: fietsboek/templates/browse.jinja2:162 fietsboek/templates/details.jinja2:103 +#: fietsboek/templates/profile_overview.jinja2:20 msgid "page.details.date" msgstr "Datum" -#: fietsboek/templates/browse.jinja2:160 fietsboek/templates/details.jinja2:117 -#: fietsboek/templates/profile_overview.jinja2:18 +#: fietsboek/templates/browse.jinja2:164 fietsboek/templates/details.jinja2:117 +#: fietsboek/templates/profile_overview.jinja2:22 msgid "page.details.length" msgstr "Länge" -#: fietsboek/templates/browse.jinja2:165 fietsboek/templates/details.jinja2:108 -#: fietsboek/templates/profile_overview.jinja2:22 +#: fietsboek/templates/browse.jinja2:169 fietsboek/templates/details.jinja2:108 +#: fietsboek/templates/profile_overview.jinja2:26 msgid "page.details.start_time" msgstr "Startzeit" -#: fietsboek/templates/browse.jinja2:167 fietsboek/templates/details.jinja2:112 -#: fietsboek/templates/profile_overview.jinja2:24 +#: fietsboek/templates/browse.jinja2:171 fietsboek/templates/details.jinja2:112 +#: fietsboek/templates/profile_overview.jinja2:28 msgid "page.details.end_time" msgstr "Endzeit" -#: fietsboek/templates/browse.jinja2:172 fietsboek/templates/details.jinja2:121 -#: fietsboek/templates/profile_overview.jinja2:28 +#: fietsboek/templates/browse.jinja2:176 fietsboek/templates/details.jinja2:121 +#: fietsboek/templates/profile_overview.jinja2:32 msgid "page.details.uphill" msgstr "Bergauf" -#: fietsboek/templates/browse.jinja2:174 fietsboek/templates/details.jinja2:125 -#: fietsboek/templates/profile_overview.jinja2:30 +#: fietsboek/templates/browse.jinja2:178 fietsboek/templates/details.jinja2:125 +#: fietsboek/templates/profile_overview.jinja2:34 msgid "page.details.downhill" msgstr "Bergab" -#: fietsboek/templates/browse.jinja2:179 fietsboek/templates/details.jinja2:130 -#: fietsboek/templates/profile_overview.jinja2:34 +#: fietsboek/templates/browse.jinja2:183 fietsboek/templates/details.jinja2:130 +#: fietsboek/templates/profile_overview.jinja2:38 msgid "page.details.moving_time" msgstr "Fahrzeit" -#: fietsboek/templates/browse.jinja2:181 fietsboek/templates/details.jinja2:134 -#: fietsboek/templates/profile_overview.jinja2:36 +#: fietsboek/templates/browse.jinja2:185 fietsboek/templates/details.jinja2:134 +#: fietsboek/templates/profile_overview.jinja2:40 msgid "page.details.stopped_time" msgstr "Haltezeit" -#: fietsboek/templates/browse.jinja2:185 fietsboek/templates/details.jinja2:138 -#: fietsboek/templates/profile_overview.jinja2:40 +#: fietsboek/templates/browse.jinja2:189 fietsboek/templates/details.jinja2:138 +#: fietsboek/templates/profile_overview.jinja2:44 msgid "page.details.max_speed" msgstr "maximale Geschwindigkeit" -#: fietsboek/templates/browse.jinja2:187 fietsboek/templates/details.jinja2:142 -#: fietsboek/templates/profile_overview.jinja2:42 +#: fietsboek/templates/browse.jinja2:191 fietsboek/templates/details.jinja2:142 +#: fietsboek/templates/profile_overview.jinja2:46 msgid "page.details.avg_speed" msgstr "durchschnittliche Geschwindigkeit" -#: fietsboek/templates/browse.jinja2:192 +#: fietsboek/templates/browse.jinja2:196 msgid "page.browse.card.comments" msgstr "Kommentare" -#: fietsboek/templates/browse.jinja2:194 +#: fietsboek/templates/browse.jinja2:198 msgid "page.browse.card.images" msgstr "Bilder" -#: fietsboek/templates/browse.jinja2:211 +#: fietsboek/templates/browse.jinja2:216 msgid "page.browse.download_multiple" msgstr "ausgewählte Herunterladen" -#: fietsboek/templates/browse.jinja2:213 +#: fietsboek/templates/browse.jinja2:218 msgid "page.browse.no_results" msgstr "Es wurden keine Strecken gefunden, die den Filtern entsprechen." -#: fietsboek/templates/browse.jinja2:215 +#: fietsboek/templates/browse.jinja2:220 msgid "page.browse.no_tracks" msgstr "" "Es wurden keine Strecken gefunden, auf die Du Zugriff hast. Versuche, " @@ -770,67 +776,67 @@ msgstr "Nächster Monat" msgid "page.profile.graph.km_per_month" msgstr "Kilometer pro Monat" -#: fietsboek/templates/profile_overview.jinja2:66 +#: fietsboek/templates/profile_overview.jinja2:71 msgid "page.profile.length" msgstr "Länge" -#: fietsboek/templates/profile_overview.jinja2:70 +#: fietsboek/templates/profile_overview.jinja2:75 msgid "page.profile.avg_length" msgstr "durchschnittliche Länge" -#: fietsboek/templates/profile_overview.jinja2:74 +#: fietsboek/templates/profile_overview.jinja2:79 msgid "page.profile.uphill" msgstr "Bergauf" -#: fietsboek/templates/profile_overview.jinja2:78 +#: fietsboek/templates/profile_overview.jinja2:83 msgid "page.profile.downhill" msgstr "Bergab" -#: fietsboek/templates/profile_overview.jinja2:82 +#: fietsboek/templates/profile_overview.jinja2:87 msgid "page.profile.moving_time" msgstr "Fahrzeit" -#: fietsboek/templates/profile_overview.jinja2:86 +#: fietsboek/templates/profile_overview.jinja2:91 msgid "page.profile.stopped_time" msgstr "Haltezeit" -#: fietsboek/templates/profile_overview.jinja2:90 +#: fietsboek/templates/profile_overview.jinja2:95 msgid "page.profile.avg_duration" msgstr "durchschnittliche Dauer" -#: fietsboek/templates/profile_overview.jinja2:94 +#: fietsboek/templates/profile_overview.jinja2:99 msgid "page.profile.max_speed" msgstr "maximale Geschwindigkeit" -#: fietsboek/templates/profile_overview.jinja2:98 +#: fietsboek/templates/profile_overview.jinja2:103 msgid "page.profile.avg_speed" msgstr "durchschnittliche Geschwindigkeit" -#: fietsboek/templates/profile_overview.jinja2:102 +#: fietsboek/templates/profile_overview.jinja2:107 msgid "page.profile.number_of_tracks" msgstr "Anzahl der Strecken" -#: fietsboek/templates/profile_overview.jinja2:108 +#: fietsboek/templates/profile_overview.jinja2:113 msgid "page.profile.longest_distance_track" msgstr "Weiteste Strecke" -#: fietsboek/templates/profile_overview.jinja2:113 +#: fietsboek/templates/profile_overview.jinja2:118 msgid "page.profile.shortest_distance_track" msgstr "Kürzeste Strecke" -#: fietsboek/templates/profile_overview.jinja2:118 +#: fietsboek/templates/profile_overview.jinja2:123 msgid "page.profile.longest_duration_track" msgstr "Am Längsten Dauernde Strecke" -#: fietsboek/templates/profile_overview.jinja2:123 +#: fietsboek/templates/profile_overview.jinja2:128 msgid "page.profile.shortest_duration_track" msgstr "Am Kürzesten Dauernde Strecke" -#: fietsboek/templates/profile_overview.jinja2:144 +#: fietsboek/templates/profile_overview.jinja2:149 msgid "page.profile.heatmap" msgstr "Heatmap" -#: fietsboek/templates/profile_overview.jinja2:152 +#: fietsboek/templates/profile_overview.jinja2:157 msgid "page.profile.tilehunt" msgstr "Kacheljäger" @@ -980,15 +986,15 @@ msgstr "Ungültige E-Mail-Adresse" msgid "flash.a_confirmation_link_has_been_sent" msgstr "Ein Bestätigungslink wurde versandt" -#: fietsboek/views/admin.py:157 +#: fietsboek/views/admin.py:156 msgid "flash.badge_added" msgstr "Wappen hinzugefügt" -#: fietsboek/views/admin.py:181 +#: fietsboek/views/admin.py:180 msgid "flash.badge_modified" msgstr "Wappen bearbeitet" -#: fietsboek/views/admin.py:201 +#: fietsboek/views/admin.py:200 msgid "flash.badge_deleted" msgstr "Wappen gelöscht" @@ -1048,23 +1054,23 @@ msgstr "E-Mail-Adresse bestätigt" msgid "flash.password_updated" msgstr "Passwort aktualisiert" -#: fietsboek/views/detail.py:162 +#: fietsboek/views/detail.py:166 msgid "flash.track_deleted" msgstr "Strecke gelöscht" -#: fietsboek/views/upload.py:53 +#: fietsboek/views/upload.py:54 msgid "flash.no_file_selected" msgstr "Keine Datei ausgewählt" -#: fietsboek/views/upload.py:66 +#: fietsboek/views/upload.py:67 msgid "flash.invalid_file" msgstr "Ungültige GPX-Datei gesendet" -#: fietsboek/views/upload.py:192 +#: fietsboek/views/upload.py:195 msgid "flash.upload_success" msgstr "Hochladen erfolgreich" -#: fietsboek/views/upload.py:211 +#: fietsboek/views/upload.py:214 msgid "flash.upload_cancelled" msgstr "Hochladen abgebrochen" diff --git a/fietsboek/locale/en/LC_MESSAGES/messages.mo b/fietsboek/locale/en/LC_MESSAGES/messages.mo index fd67c57..6dc4ec3 100644 Binary files a/fietsboek/locale/en/LC_MESSAGES/messages.mo and b/fietsboek/locale/en/LC_MESSAGES/messages.mo differ diff --git a/fietsboek/locale/en/LC_MESSAGES/messages.po b/fietsboek/locale/en/LC_MESSAGES/messages.po index 4e9f302..a528046 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: 2025-05-06 21:46+0200\n" +"POT-Creation-Date: 2025-05-10 22:16+0200\n" "PO-Revision-Date: 2023-04-03 20:42+0200\n" "Last-Translator: \n" "Language: en\n" @@ -18,11 +18,11 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.15.0\n" -#: fietsboek/actions.py:267 +#: fietsboek/actions.py:278 msgid "email.verify_mail.subject" msgstr "Fietsboek Account Verification" -#: fietsboek/actions.py:270 +#: fietsboek/actions.py:281 msgid "email.verify.text" msgstr "" "To verify your Fietsboek account, please use this link: {}\n" @@ -79,7 +79,9 @@ msgstr "You are not allowed to access this resource." #: fietsboek/templates/403.jinja2:12 msgid "403.try_log_in" -msgstr "If you should have access, make sure you are logged in with the right credentials." +msgstr "" +"If you should have access, make sure you are logged in with the right " +"credentials." #: fietsboek/templates/404.jinja2:5 msgid "404.title" @@ -113,7 +115,7 @@ msgstr "Badges" msgid "page.admin.badge.edit" msgstr "Edit" -#: fietsboek/templates/admin_badges.jinja2:27 +#: fietsboek/templates/admin_badges.jinja2:22 msgid "page.admin.badge.delete_badge" msgstr "Delete badge" @@ -182,10 +184,14 @@ msgid "admin.overview.storage_graph.label.images" msgstr "Images" #: fietsboek/templates/admin_overview.jinja2:57 +msgid "admin.overview.storage_graph.label.previews" +msgstr "Preview images" + +#: fietsboek/templates/admin_overview.jinja2:58 msgid "admin.overview.storage_graph.label.user_maps" msgstr "User maps" -#: fietsboek/templates/admin_overview.jinja2:82 +#: fietsboek/templates/admin_overview.jinja2:84 msgid "admin.overview.storage_graph.title" msgstr "Storage breakdown" @@ -285,73 +291,73 @@ msgstr "This is a recording of a track" msgid "page.browse.synthetic_tooltip" msgstr "This is a pre-planned track" -#: fietsboek/templates/browse.jinja2:158 fietsboek/templates/details.jinja2:103 -#: fietsboek/templates/profile_overview.jinja2:16 +#: fietsboek/templates/browse.jinja2:162 fietsboek/templates/details.jinja2:103 +#: fietsboek/templates/profile_overview.jinja2:20 msgid "page.details.date" msgstr "Date" -#: fietsboek/templates/browse.jinja2:160 fietsboek/templates/details.jinja2:117 -#: fietsboek/templates/profile_overview.jinja2:18 +#: fietsboek/templates/browse.jinja2:164 fietsboek/templates/details.jinja2:117 +#: fietsboek/templates/profile_overview.jinja2:22 msgid "page.details.length" msgstr "Length" -#: fietsboek/templates/browse.jinja2:165 fietsboek/templates/details.jinja2:108 -#: fietsboek/templates/profile_overview.jinja2:22 +#: fietsboek/templates/browse.jinja2:169 fietsboek/templates/details.jinja2:108 +#: fietsboek/templates/profile_overview.jinja2:26 msgid "page.details.start_time" msgstr "Record Start" -#: fietsboek/templates/browse.jinja2:167 fietsboek/templates/details.jinja2:112 -#: fietsboek/templates/profile_overview.jinja2:24 +#: fietsboek/templates/browse.jinja2:171 fietsboek/templates/details.jinja2:112 +#: fietsboek/templates/profile_overview.jinja2:28 msgid "page.details.end_time" msgstr "Record End" -#: fietsboek/templates/browse.jinja2:172 fietsboek/templates/details.jinja2:121 -#: fietsboek/templates/profile_overview.jinja2:28 +#: fietsboek/templates/browse.jinja2:176 fietsboek/templates/details.jinja2:121 +#: fietsboek/templates/profile_overview.jinja2:32 msgid "page.details.uphill" msgstr "Uphill" -#: fietsboek/templates/browse.jinja2:174 fietsboek/templates/details.jinja2:125 -#: fietsboek/templates/profile_overview.jinja2:30 +#: fietsboek/templates/browse.jinja2:178 fietsboek/templates/details.jinja2:125 +#: fietsboek/templates/profile_overview.jinja2:34 msgid "page.details.downhill" msgstr "Downhill" -#: fietsboek/templates/browse.jinja2:179 fietsboek/templates/details.jinja2:130 -#: fietsboek/templates/profile_overview.jinja2:34 +#: fietsboek/templates/browse.jinja2:183 fietsboek/templates/details.jinja2:130 +#: fietsboek/templates/profile_overview.jinja2:38 msgid "page.details.moving_time" msgstr "Moving Time" -#: fietsboek/templates/browse.jinja2:181 fietsboek/templates/details.jinja2:134 -#: fietsboek/templates/profile_overview.jinja2:36 +#: fietsboek/templates/browse.jinja2:185 fietsboek/templates/details.jinja2:134 +#: fietsboek/templates/profile_overview.jinja2:40 msgid "page.details.stopped_time" msgstr "Stopped Time" -#: fietsboek/templates/browse.jinja2:185 fietsboek/templates/details.jinja2:138 -#: fietsboek/templates/profile_overview.jinja2:40 +#: fietsboek/templates/browse.jinja2:189 fietsboek/templates/details.jinja2:138 +#: fietsboek/templates/profile_overview.jinja2:44 msgid "page.details.max_speed" msgstr "Max Speed" -#: fietsboek/templates/browse.jinja2:187 fietsboek/templates/details.jinja2:142 -#: fietsboek/templates/profile_overview.jinja2:42 +#: fietsboek/templates/browse.jinja2:191 fietsboek/templates/details.jinja2:142 +#: fietsboek/templates/profile_overview.jinja2:46 msgid "page.details.avg_speed" msgstr "Average Speed" -#: fietsboek/templates/browse.jinja2:192 +#: fietsboek/templates/browse.jinja2:196 msgid "page.browse.card.comments" msgstr "Comments" -#: fietsboek/templates/browse.jinja2:194 +#: fietsboek/templates/browse.jinja2:198 msgid "page.browse.card.images" msgstr "Images" -#: fietsboek/templates/browse.jinja2:211 +#: fietsboek/templates/browse.jinja2:216 msgid "page.browse.download_multiple" msgstr "Download selected" -#: fietsboek/templates/browse.jinja2:213 +#: fietsboek/templates/browse.jinja2:218 msgid "page.browse.no_results" msgstr "No results matching the filters were found." -#: fietsboek/templates/browse.jinja2:215 +#: fietsboek/templates/browse.jinja2:220 msgid "page.browse.no_tracks" msgstr "You currently do not have access to any tracks. Try logging in." @@ -764,67 +770,67 @@ msgstr "Next month" msgid "page.profile.graph.km_per_month" msgstr "Kilometers per month" -#: fietsboek/templates/profile_overview.jinja2:66 +#: fietsboek/templates/profile_overview.jinja2:71 msgid "page.profile.length" msgstr "Length" -#: fietsboek/templates/profile_overview.jinja2:70 +#: fietsboek/templates/profile_overview.jinja2:75 msgid "page.profile.avg_length" msgstr "Average Length" -#: fietsboek/templates/profile_overview.jinja2:74 +#: fietsboek/templates/profile_overview.jinja2:79 msgid "page.profile.uphill" msgstr "Uphill" -#: fietsboek/templates/profile_overview.jinja2:78 +#: fietsboek/templates/profile_overview.jinja2:83 msgid "page.profile.downhill" msgstr "Downhill" -#: fietsboek/templates/profile_overview.jinja2:82 +#: fietsboek/templates/profile_overview.jinja2:87 msgid "page.profile.moving_time" msgstr "Moving Time" -#: fietsboek/templates/profile_overview.jinja2:86 +#: fietsboek/templates/profile_overview.jinja2:91 msgid "page.profile.stopped_time" msgstr "Stopped Time" -#: fietsboek/templates/profile_overview.jinja2:90 +#: fietsboek/templates/profile_overview.jinja2:95 msgid "page.profile.avg_duration" msgstr "Average Duration" -#: fietsboek/templates/profile_overview.jinja2:94 +#: fietsboek/templates/profile_overview.jinja2:99 msgid "page.profile.max_speed" msgstr "Max Speed" -#: fietsboek/templates/profile_overview.jinja2:98 +#: fietsboek/templates/profile_overview.jinja2:103 msgid "page.profile.avg_speed" msgstr "Average Speed" -#: fietsboek/templates/profile_overview.jinja2:102 +#: fietsboek/templates/profile_overview.jinja2:107 msgid "page.profile.number_of_tracks" msgstr "Number of tracks" -#: fietsboek/templates/profile_overview.jinja2:108 +#: fietsboek/templates/profile_overview.jinja2:113 msgid "page.profile.longest_distance_track" msgstr "Longest Track" -#: fietsboek/templates/profile_overview.jinja2:113 +#: fietsboek/templates/profile_overview.jinja2:118 msgid "page.profile.shortest_distance_track" msgstr "Shortest Track" -#: fietsboek/templates/profile_overview.jinja2:118 +#: fietsboek/templates/profile_overview.jinja2:123 msgid "page.profile.longest_duration_track" msgstr "Most Time-Consuming Track" -#: fietsboek/templates/profile_overview.jinja2:123 +#: fietsboek/templates/profile_overview.jinja2:128 msgid "page.profile.shortest_duration_track" msgstr "Quickest Track" -#: fietsboek/templates/profile_overview.jinja2:144 +#: fietsboek/templates/profile_overview.jinja2:149 msgid "page.profile.heatmap" msgstr "Heat Map" -#: fietsboek/templates/profile_overview.jinja2:152 +#: fietsboek/templates/profile_overview.jinja2:157 msgid "page.profile.tilehunt" msgstr "Tilehunt" @@ -970,15 +976,15 @@ msgstr "Invalid email" msgid "flash.a_confirmation_link_has_been_sent" msgstr "A confirmation link has been sent" -#: fietsboek/views/admin.py:157 +#: fietsboek/views/admin.py:156 msgid "flash.badge_added" msgstr "Badge has been added" -#: fietsboek/views/admin.py:181 +#: fietsboek/views/admin.py:180 msgid "flash.badge_modified" msgstr "Badge has been modified" -#: fietsboek/views/admin.py:201 +#: fietsboek/views/admin.py:200 msgid "flash.badge_deleted" msgstr "Badge has been deleted" @@ -1037,23 +1043,23 @@ msgstr "Your email address has been verified" msgid "flash.password_updated" msgstr "Password has been updated" -#: fietsboek/views/detail.py:162 +#: fietsboek/views/detail.py:166 msgid "flash.track_deleted" msgstr "Track has been deleted" -#: fietsboek/views/upload.py:53 +#: fietsboek/views/upload.py:54 msgid "flash.no_file_selected" msgstr "No file selected" -#: fietsboek/views/upload.py:66 +#: fietsboek/views/upload.py:67 msgid "flash.invalid_file" msgstr "Invalid GPX file selected" -#: fietsboek/views/upload.py:192 +#: fietsboek/views/upload.py:195 msgid "flash.upload_success" msgstr "Upload successful" -#: fietsboek/views/upload.py:211 +#: fietsboek/views/upload.py:214 msgid "flash.upload_cancelled" msgstr "Upload cancelled" diff --git a/fietsboek/locale/fietslog.pot b/fietsboek/locale/fietslog.pot index 1a1770b..e58676f 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: 2025-05-06 21:46+0200\n" +"POT-Creation-Date: 2025-05-10 22:16+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,11 +17,11 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.15.0\n" -#: fietsboek/actions.py:267 +#: fietsboek/actions.py:278 msgid "email.verify_mail.subject" msgstr "" -#: fietsboek/actions.py:270 +#: fietsboek/actions.py:281 msgid "email.verify.text" msgstr "" @@ -70,7 +70,7 @@ msgid "403.title" msgstr "" #: fietsboek/templates/403.jinja2:9 -msgid "403.no_entry" +msgid "403.no_access" msgstr "" #: fietsboek/templates/403.jinja2:12 @@ -109,7 +109,7 @@ msgstr "" msgid "page.admin.badge.edit" msgstr "" -#: fietsboek/templates/admin_badges.jinja2:27 +#: fietsboek/templates/admin_badges.jinja2:22 msgid "page.admin.badge.delete_badge" msgstr "" @@ -178,10 +178,14 @@ msgid "admin.overview.storage_graph.label.images" msgstr "" #: fietsboek/templates/admin_overview.jinja2:57 +msgid "admin.overview.storage_graph.label.previews" +msgstr "" + +#: fietsboek/templates/admin_overview.jinja2:58 msgid "admin.overview.storage_graph.label.user_maps" msgstr "" -#: fietsboek/templates/admin_overview.jinja2:82 +#: fietsboek/templates/admin_overview.jinja2:84 msgid "admin.overview.storage_graph.title" msgstr "" @@ -281,73 +285,73 @@ msgstr "" msgid "page.browse.synthetic_tooltip" msgstr "" -#: fietsboek/templates/browse.jinja2:158 fietsboek/templates/details.jinja2:103 -#: fietsboek/templates/profile_overview.jinja2:16 +#: fietsboek/templates/browse.jinja2:162 fietsboek/templates/details.jinja2:103 +#: fietsboek/templates/profile_overview.jinja2:20 msgid "page.details.date" msgstr "" -#: fietsboek/templates/browse.jinja2:160 fietsboek/templates/details.jinja2:117 -#: fietsboek/templates/profile_overview.jinja2:18 +#: fietsboek/templates/browse.jinja2:164 fietsboek/templates/details.jinja2:117 +#: fietsboek/templates/profile_overview.jinja2:22 msgid "page.details.length" msgstr "" -#: fietsboek/templates/browse.jinja2:165 fietsboek/templates/details.jinja2:108 -#: fietsboek/templates/profile_overview.jinja2:22 +#: fietsboek/templates/browse.jinja2:169 fietsboek/templates/details.jinja2:108 +#: fietsboek/templates/profile_overview.jinja2:26 msgid "page.details.start_time" msgstr "" -#: fietsboek/templates/browse.jinja2:167 fietsboek/templates/details.jinja2:112 -#: fietsboek/templates/profile_overview.jinja2:24 +#: fietsboek/templates/browse.jinja2:171 fietsboek/templates/details.jinja2:112 +#: fietsboek/templates/profile_overview.jinja2:28 msgid "page.details.end_time" msgstr "" -#: fietsboek/templates/browse.jinja2:172 fietsboek/templates/details.jinja2:121 -#: fietsboek/templates/profile_overview.jinja2:28 +#: fietsboek/templates/browse.jinja2:176 fietsboek/templates/details.jinja2:121 +#: fietsboek/templates/profile_overview.jinja2:32 msgid "page.details.uphill" msgstr "" -#: fietsboek/templates/browse.jinja2:174 fietsboek/templates/details.jinja2:125 -#: fietsboek/templates/profile_overview.jinja2:30 +#: fietsboek/templates/browse.jinja2:178 fietsboek/templates/details.jinja2:125 +#: fietsboek/templates/profile_overview.jinja2:34 msgid "page.details.downhill" msgstr "" -#: fietsboek/templates/browse.jinja2:179 fietsboek/templates/details.jinja2:130 -#: fietsboek/templates/profile_overview.jinja2:34 +#: fietsboek/templates/browse.jinja2:183 fietsboek/templates/details.jinja2:130 +#: fietsboek/templates/profile_overview.jinja2:38 msgid "page.details.moving_time" msgstr "" -#: fietsboek/templates/browse.jinja2:181 fietsboek/templates/details.jinja2:134 -#: fietsboek/templates/profile_overview.jinja2:36 +#: fietsboek/templates/browse.jinja2:185 fietsboek/templates/details.jinja2:134 +#: fietsboek/templates/profile_overview.jinja2:40 msgid "page.details.stopped_time" msgstr "" -#: fietsboek/templates/browse.jinja2:185 fietsboek/templates/details.jinja2:138 -#: fietsboek/templates/profile_overview.jinja2:40 +#: fietsboek/templates/browse.jinja2:189 fietsboek/templates/details.jinja2:138 +#: fietsboek/templates/profile_overview.jinja2:44 msgid "page.details.max_speed" msgstr "" -#: fietsboek/templates/browse.jinja2:187 fietsboek/templates/details.jinja2:142 -#: fietsboek/templates/profile_overview.jinja2:42 +#: fietsboek/templates/browse.jinja2:191 fietsboek/templates/details.jinja2:142 +#: fietsboek/templates/profile_overview.jinja2:46 msgid "page.details.avg_speed" msgstr "" -#: fietsboek/templates/browse.jinja2:192 +#: fietsboek/templates/browse.jinja2:196 msgid "page.browse.card.comments" msgstr "" -#: fietsboek/templates/browse.jinja2:194 +#: fietsboek/templates/browse.jinja2:198 msgid "page.browse.card.images" msgstr "" -#: fietsboek/templates/browse.jinja2:211 +#: fietsboek/templates/browse.jinja2:216 msgid "page.browse.download_multiple" msgstr "" -#: fietsboek/templates/browse.jinja2:213 +#: fietsboek/templates/browse.jinja2:218 msgid "page.browse.no_results" msgstr "" -#: fietsboek/templates/browse.jinja2:215 +#: fietsboek/templates/browse.jinja2:220 msgid "page.browse.no_tracks" msgstr "" @@ -758,67 +762,67 @@ msgstr "" msgid "page.profile.graph.km_per_month" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:66 +#: fietsboek/templates/profile_overview.jinja2:71 msgid "page.profile.length" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:70 +#: fietsboek/templates/profile_overview.jinja2:75 msgid "page.profile.avg_length" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:74 +#: fietsboek/templates/profile_overview.jinja2:79 msgid "page.profile.uphill" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:78 +#: fietsboek/templates/profile_overview.jinja2:83 msgid "page.profile.downhill" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:82 +#: fietsboek/templates/profile_overview.jinja2:87 msgid "page.profile.moving_time" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:86 +#: fietsboek/templates/profile_overview.jinja2:91 msgid "page.profile.stopped_time" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:90 +#: fietsboek/templates/profile_overview.jinja2:95 msgid "page.profile.avg_duration" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:94 +#: fietsboek/templates/profile_overview.jinja2:99 msgid "page.profile.max_speed" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:98 +#: fietsboek/templates/profile_overview.jinja2:103 msgid "page.profile.avg_speed" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:102 +#: fietsboek/templates/profile_overview.jinja2:107 msgid "page.profile.number_of_tracks" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:108 +#: fietsboek/templates/profile_overview.jinja2:113 msgid "page.profile.longest_distance_track" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:113 +#: fietsboek/templates/profile_overview.jinja2:118 msgid "page.profile.shortest_distance_track" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:118 +#: fietsboek/templates/profile_overview.jinja2:123 msgid "page.profile.longest_duration_track" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:123 +#: fietsboek/templates/profile_overview.jinja2:128 msgid "page.profile.shortest_duration_track" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:144 +#: fietsboek/templates/profile_overview.jinja2:149 msgid "page.profile.heatmap" msgstr "" -#: fietsboek/templates/profile_overview.jinja2:152 +#: fietsboek/templates/profile_overview.jinja2:157 msgid "page.profile.tilehunt" msgstr "" @@ -958,15 +962,15 @@ msgstr "" msgid "flash.a_confirmation_link_has_been_sent" msgstr "" -#: fietsboek/views/admin.py:157 +#: fietsboek/views/admin.py:156 msgid "flash.badge_added" msgstr "" -#: fietsboek/views/admin.py:181 +#: fietsboek/views/admin.py:180 msgid "flash.badge_modified" msgstr "" -#: fietsboek/views/admin.py:201 +#: fietsboek/views/admin.py:200 msgid "flash.badge_deleted" msgstr "" @@ -1022,23 +1026,23 @@ msgstr "" msgid "flash.password_updated" msgstr "" -#: fietsboek/views/detail.py:162 +#: fietsboek/views/detail.py:166 msgid "flash.track_deleted" msgstr "" -#: fietsboek/views/upload.py:53 +#: fietsboek/views/upload.py:54 msgid "flash.no_file_selected" msgstr "" -#: fietsboek/views/upload.py:66 +#: fietsboek/views/upload.py:67 msgid "flash.invalid_file" msgstr "" -#: fietsboek/views/upload.py:192 +#: fietsboek/views/upload.py:195 msgid "flash.upload_success" msgstr "" -#: fietsboek/views/upload.py:211 +#: fietsboek/views/upload.py:214 msgid "flash.upload_cancelled" msgstr "" diff --git a/fietsboek/templates/admin_overview.jinja2 b/fietsboek/templates/admin_overview.jinja2 index 5337a69..18a7633 100644 --- a/fietsboek/templates/admin_overview.jinja2 +++ b/fietsboek/templates/admin_overview.jinja2 @@ -54,6 +54,7 @@ labels: [ {{ _("admin.overview.storage_graph.label.gpx") | tojson }}, {{ _("admin.overview.storage_graph.label.images") | tojson }}, + {{ _("admin.overview.storage_graph.label.previews") | tojson }}, {{ _("admin.overview.storage_graph.label.user_maps") | tojson }} ], datasets: [ @@ -62,6 +63,7 @@ data: [ {{ (size_breakdown.gpx_files / 1024 / 1024) | tojson }}, {{ (size_breakdown.image_files / 1024 / 1024) | tojson }}, + {{ (size_breakdown.preview_files / 1024 / 1024) | tojson }}, {{ (size_breakdown.user_maps / 1024 / 1024) | tojson }} ] } diff --git a/fietsboek/views/admin.py b/fietsboek/views/admin.py index 0589cd0..6948049 100644 --- a/fietsboek/views/admin.py +++ b/fietsboek/views/admin.py @@ -35,6 +35,7 @@ class SizeBreakdown: gpx_files: int = 0 image_files: int = 0 + preview_files: int = 0 user_maps: int = 0 @@ -44,6 +45,7 @@ def _get_size_breakdown(data_manager): for track_id in data_manager.list_tracks(): track = data_manager.open(track_id) breakdown.gpx_files += _safe_size(track.gpx_path()) + breakdown.preview_files += _safe_size(track.preview_path()) for image_id in track.images(): breakdown.image_files += _safe_size(track.image_path(image_id)) -- cgit v1.2.3