From afd910b04142f7224d792b98316d318dbfc0d360 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 10 Aug 2022 13:42:24 +0200 Subject: add icons in the browse view for synthetic/organic --- fietsboek/locale/de/LC_MESSAGES/messages.mo | Bin 11541 -> 11699 bytes fietsboek/locale/de/LC_MESSAGES/messages.po | 36 +++++++++++++++++----------- fietsboek/locale/en/LC_MESSAGES/messages.mo | Bin 10869 -> 11018 bytes fietsboek/locale/en/LC_MESSAGES/messages.po | 36 +++++++++++++++++----------- fietsboek/locale/fietslog.pot | 36 +++++++++++++++++----------- fietsboek/templates/browse.jinja2 | 7 ++++++ 6 files changed, 73 insertions(+), 42 deletions(-) diff --git a/fietsboek/locale/de/LC_MESSAGES/messages.mo b/fietsboek/locale/de/LC_MESSAGES/messages.mo index 737c817..7efce7f 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 464aa2a..f4a7f03 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: 2022-08-08 15:09+0200\n" +"POT-Creation-Date: 2022-08-10 13:36+0200\n" "PO-Revision-Date: 2022-07-02 17:35+0200\n" "Last-Translator: FULL NAME \n" "Language: de\n" @@ -146,55 +146,63 @@ msgstr "Filter zurücksetzen" msgid "page.browse.filters.expand_advanced" msgstr "Erweitert" -#: fietsboek/templates/browse.jinja2:125 fietsboek/templates/details.jinja2:88 +#: fietsboek/templates/browse.jinja2:122 +msgid "page.browse.organic_tooltip" +msgstr "Dies ist eine Aufnahme einer Strecke" + +#: fietsboek/templates/browse.jinja2:124 +msgid "page.browse.synthetic_tooltip" +msgstr "Dies ist eine geplante Strecke" + +#: fietsboek/templates/browse.jinja2:132 fietsboek/templates/details.jinja2:88 msgid "page.details.date" msgstr "Datum" -#: fietsboek/templates/browse.jinja2:127 fietsboek/templates/details.jinja2:102 +#: fietsboek/templates/browse.jinja2:134 fietsboek/templates/details.jinja2:102 msgid "page.details.length" msgstr "Länge" -#: fietsboek/templates/browse.jinja2:132 fietsboek/templates/details.jinja2:93 +#: fietsboek/templates/browse.jinja2:139 fietsboek/templates/details.jinja2:93 msgid "page.details.start_time" msgstr "Startzeit" -#: fietsboek/templates/browse.jinja2:134 fietsboek/templates/details.jinja2:97 +#: fietsboek/templates/browse.jinja2:141 fietsboek/templates/details.jinja2:97 msgid "page.details.end_time" msgstr "Endzeit" -#: fietsboek/templates/browse.jinja2:139 fietsboek/templates/details.jinja2:106 +#: fietsboek/templates/browse.jinja2:146 fietsboek/templates/details.jinja2:106 msgid "page.details.uphill" msgstr "Bergauf" -#: fietsboek/templates/browse.jinja2:141 fietsboek/templates/details.jinja2:110 +#: fietsboek/templates/browse.jinja2:148 fietsboek/templates/details.jinja2:110 msgid "page.details.downhill" msgstr "Bergab" -#: fietsboek/templates/browse.jinja2:146 fietsboek/templates/details.jinja2:115 +#: fietsboek/templates/browse.jinja2:153 fietsboek/templates/details.jinja2:115 msgid "page.details.moving_time" msgstr "Fahrzeit" -#: fietsboek/templates/browse.jinja2:148 fietsboek/templates/details.jinja2:119 +#: fietsboek/templates/browse.jinja2:155 fietsboek/templates/details.jinja2:119 msgid "page.details.stopped_time" msgstr "Haltezeit" -#: fietsboek/templates/browse.jinja2:152 fietsboek/templates/details.jinja2:123 +#: fietsboek/templates/browse.jinja2:159 fietsboek/templates/details.jinja2:123 msgid "page.details.max_speed" msgstr "maximale Geschwindigkeit" -#: fietsboek/templates/browse.jinja2:154 fietsboek/templates/details.jinja2:127 +#: fietsboek/templates/browse.jinja2:161 fietsboek/templates/details.jinja2:127 msgid "page.details.avg_speed" msgstr "durchschnittliche Geschwindigkeit" -#: fietsboek/templates/browse.jinja2:172 +#: fietsboek/templates/browse.jinja2:179 msgid "page.browse.download_multiple" msgstr "ausgewählte Herunterladen" -#: fietsboek/templates/browse.jinja2:174 +#: fietsboek/templates/browse.jinja2:181 msgid "page.browse.no_results" msgstr "Es wurden keine Strecken gefunden, die den Filtern entsprechen." -#: fietsboek/templates/browse.jinja2:176 +#: fietsboek/templates/browse.jinja2:183 msgid "page.browse.no_tracks" msgstr "" "Es wurden keine Strecken gefunden, auf die Du Zugriff hast. Versuche, " diff --git a/fietsboek/locale/en/LC_MESSAGES/messages.mo b/fietsboek/locale/en/LC_MESSAGES/messages.mo index ff51ded..ee23eef 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 89c5f2d..71c8b17 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: 2022-08-08 15:09+0200\n" +"POT-Creation-Date: 2022-08-10 13:36+0200\n" "PO-Revision-Date: 2022-06-28 13:11+0200\n" "Last-Translator: \n" "Language: en\n" @@ -146,55 +146,63 @@ msgstr "Remove filters" msgid "page.browse.filters.expand_advanced" msgstr "Advanced" -#: fietsboek/templates/browse.jinja2:125 fietsboek/templates/details.jinja2:88 +#: fietsboek/templates/browse.jinja2:122 +msgid "page.browse.organic_tooltip" +msgstr "This is a recording of a track" + +#: fietsboek/templates/browse.jinja2:124 +msgid "page.browse.synthetic_tooltip" +msgstr "This is a pre-planned track" + +#: fietsboek/templates/browse.jinja2:132 fietsboek/templates/details.jinja2:88 msgid "page.details.date" msgstr "Date" -#: fietsboek/templates/browse.jinja2:127 fietsboek/templates/details.jinja2:102 +#: fietsboek/templates/browse.jinja2:134 fietsboek/templates/details.jinja2:102 msgid "page.details.length" msgstr "Length" -#: fietsboek/templates/browse.jinja2:132 fietsboek/templates/details.jinja2:93 +#: fietsboek/templates/browse.jinja2:139 fietsboek/templates/details.jinja2:93 msgid "page.details.start_time" msgstr "Record Start" -#: fietsboek/templates/browse.jinja2:134 fietsboek/templates/details.jinja2:97 +#: fietsboek/templates/browse.jinja2:141 fietsboek/templates/details.jinja2:97 msgid "page.details.end_time" msgstr "Record End" -#: fietsboek/templates/browse.jinja2:139 fietsboek/templates/details.jinja2:106 +#: fietsboek/templates/browse.jinja2:146 fietsboek/templates/details.jinja2:106 msgid "page.details.uphill" msgstr "Uphill" -#: fietsboek/templates/browse.jinja2:141 fietsboek/templates/details.jinja2:110 +#: fietsboek/templates/browse.jinja2:148 fietsboek/templates/details.jinja2:110 msgid "page.details.downhill" msgstr "Downhill" -#: fietsboek/templates/browse.jinja2:146 fietsboek/templates/details.jinja2:115 +#: fietsboek/templates/browse.jinja2:153 fietsboek/templates/details.jinja2:115 msgid "page.details.moving_time" msgstr "Moving Time" -#: fietsboek/templates/browse.jinja2:148 fietsboek/templates/details.jinja2:119 +#: fietsboek/templates/browse.jinja2:155 fietsboek/templates/details.jinja2:119 msgid "page.details.stopped_time" msgstr "Stopped Time" -#: fietsboek/templates/browse.jinja2:152 fietsboek/templates/details.jinja2:123 +#: fietsboek/templates/browse.jinja2:159 fietsboek/templates/details.jinja2:123 msgid "page.details.max_speed" msgstr "Max Speed" -#: fietsboek/templates/browse.jinja2:154 fietsboek/templates/details.jinja2:127 +#: fietsboek/templates/browse.jinja2:161 fietsboek/templates/details.jinja2:127 msgid "page.details.avg_speed" msgstr "Average Speed" -#: fietsboek/templates/browse.jinja2:172 +#: fietsboek/templates/browse.jinja2:179 msgid "page.browse.download_multiple" msgstr "Download selected" -#: fietsboek/templates/browse.jinja2:174 +#: fietsboek/templates/browse.jinja2:181 msgid "page.browse.no_results" msgstr "No results matching the filters were found." -#: fietsboek/templates/browse.jinja2:176 +#: fietsboek/templates/browse.jinja2:183 msgid "page.browse.no_tracks" msgstr "You currently do not have access to any tracks. Try logging in." diff --git a/fietsboek/locale/fietslog.pot b/fietsboek/locale/fietslog.pot index 8aa84cc..91390c8 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: 2022-08-08 15:09+0200\n" +"POT-Creation-Date: 2022-08-10 13:36+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -145,55 +145,63 @@ msgstr "" msgid "page.browse.filters.expand_advanced" msgstr "" -#: fietsboek/templates/browse.jinja2:125 fietsboek/templates/details.jinja2:88 +#: fietsboek/templates/browse.jinja2:122 +msgid "page.browse.organic_tooltip" +msgstr "" + +#: fietsboek/templates/browse.jinja2:124 +msgid "page.browse.synthetic_tooltip" +msgstr "" + +#: fietsboek/templates/browse.jinja2:132 fietsboek/templates/details.jinja2:88 msgid "page.details.date" msgstr "" -#: fietsboek/templates/browse.jinja2:127 fietsboek/templates/details.jinja2:102 +#: fietsboek/templates/browse.jinja2:134 fietsboek/templates/details.jinja2:102 msgid "page.details.length" msgstr "" -#: fietsboek/templates/browse.jinja2:132 fietsboek/templates/details.jinja2:93 +#: fietsboek/templates/browse.jinja2:139 fietsboek/templates/details.jinja2:93 msgid "page.details.start_time" msgstr "" -#: fietsboek/templates/browse.jinja2:134 fietsboek/templates/details.jinja2:97 +#: fietsboek/templates/browse.jinja2:141 fietsboek/templates/details.jinja2:97 msgid "page.details.end_time" msgstr "" -#: fietsboek/templates/browse.jinja2:139 fietsboek/templates/details.jinja2:106 +#: fietsboek/templates/browse.jinja2:146 fietsboek/templates/details.jinja2:106 msgid "page.details.uphill" msgstr "" -#: fietsboek/templates/browse.jinja2:141 fietsboek/templates/details.jinja2:110 +#: fietsboek/templates/browse.jinja2:148 fietsboek/templates/details.jinja2:110 msgid "page.details.downhill" msgstr "" -#: fietsboek/templates/browse.jinja2:146 fietsboek/templates/details.jinja2:115 +#: fietsboek/templates/browse.jinja2:153 fietsboek/templates/details.jinja2:115 msgid "page.details.moving_time" msgstr "" -#: fietsboek/templates/browse.jinja2:148 fietsboek/templates/details.jinja2:119 +#: fietsboek/templates/browse.jinja2:155 fietsboek/templates/details.jinja2:119 msgid "page.details.stopped_time" msgstr "" -#: fietsboek/templates/browse.jinja2:152 fietsboek/templates/details.jinja2:123 +#: fietsboek/templates/browse.jinja2:159 fietsboek/templates/details.jinja2:123 msgid "page.details.max_speed" msgstr "" -#: fietsboek/templates/browse.jinja2:154 fietsboek/templates/details.jinja2:127 +#: fietsboek/templates/browse.jinja2:161 fietsboek/templates/details.jinja2:127 msgid "page.details.avg_speed" msgstr "" -#: fietsboek/templates/browse.jinja2:172 +#: fietsboek/templates/browse.jinja2:179 msgid "page.browse.download_multiple" msgstr "" -#: fietsboek/templates/browse.jinja2:174 +#: fietsboek/templates/browse.jinja2:181 msgid "page.browse.no_results" msgstr "" -#: fietsboek/templates/browse.jinja2:176 +#: fietsboek/templates/browse.jinja2:183 msgid "page.browse.no_tracks" msgstr "" diff --git a/fietsboek/templates/browse.jinja2 b/fietsboek/templates/browse.jinja2 index 5ec7c05..ebee881 100644 --- a/fietsboek/templates/browse.jinja2 +++ b/fietsboek/templates/browse.jinja2 @@ -117,6 +117,13 @@ {% if track.text_tags() %} {% for tag in track.tags %}{{ tag.tag }} {% endfor %} {% endif %} + + {% if track.show_organic_data() %} + + {% else %} + + {% endif %} +
-- cgit v1.2.3