aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-08-10 13:42:24 +0200
committerDaniel Schadt <kingdread@gmx.de>2022-08-10 13:42:24 +0200
commitafd910b04142f7224d792b98316d318dbfc0d360 (patch)
tree1e3188fe7ca932868a861ea1e0465c140c5f9a9a
parent7d6319adb3b08e31227fc4ccc41b322afd5ddfc5 (diff)
downloadfietsboek-afd910b04142f7224d792b98316d318dbfc0d360.tar.gz
fietsboek-afd910b04142f7224d792b98316d318dbfc0d360.tar.bz2
fietsboek-afd910b04142f7224d792b98316d318dbfc0d360.zip
add icons in the browse view for synthetic/organic
-rw-r--r--fietsboek/locale/de/LC_MESSAGES/messages.mobin11541 -> 11699 bytes
-rw-r--r--fietsboek/locale/de/LC_MESSAGES/messages.po36
-rw-r--r--fietsboek/locale/en/LC_MESSAGES/messages.mobin10869 -> 11018 bytes
-rw-r--r--fietsboek/locale/en/LC_MESSAGES/messages.po36
-rw-r--r--fietsboek/locale/fietslog.pot36
-rw-r--r--fietsboek/templates/browse.jinja27
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
--- a/fietsboek/locale/de/LC_MESSAGES/messages.mo
+++ b/fietsboek/locale/de/LC_MESSAGES/messages.mo
Binary files 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 <EMAIL@ADDRESS>\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
--- a/fietsboek/locale/en/LC_MESSAGES/messages.mo
+++ b/fietsboek/locale/en/LC_MESSAGES/messages.mo
Binary files 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 %}<span class="badge bg-info text-dark">{{ tag.tag }}</span> {% endfor %}
{% endif %}
+ <span class="float-end">
+ {% if track.show_organic_data() %}
+ <i class="bi bi-cassette" title="{{ _("page.browse.organic_tooltip") }}"></i>
+ {% else %}
+ <i class="bi bi-sign-turn-slight-right" title="{{ _("page.browse.synthetic_tooltip") }}"></i>
+ {% endif %}
+ </span>
</h5>
<div class="card-body">
<table class="table table-hover table-sm">