Commit graph

15 commits

Author SHA1 Message Date
Gautier P
52be57f5ba Always display 3 digits for distance title, even when ending with zeros 2020-05-24 19:23:00 +02:00
Gautier Pelloux-Prayer
d31be926d2 Increase prettier maxwidth to 120 2019-08-10 19:36:36 +02:00
Henrik Fehlauer
632e094fb3 Always show travel time and energy
Always show the entries for travel time and energy in the statistics
bar, so the layout does not suddenly change when starting to draw a route.
2019-07-01 20:46:41 +02:00
Henrik Fehlauer
9bc38fea89 Improve number formatting
Use locale-aware number formatting (i.e. add grouping separators).

Use hours and minutes to format travel time.
2019-05-30 23:52:59 +02:00
Henrik Fehlauer
aeb93e33b6 Polish UI of track statistics bar
Use "x | y" format instead "x (y)"
(The old format was a bit confusing, e.g. the second part of the label
could be mistaken for an "explanation" of the first part, while it
actually is an entirely separate label.)

Repeat unit for every metric.

Use plural for units.

Use "-" everywhere when a metric is not yet available instead of mixing
"-" and "0".

Properly revert to initial "-" when removing route instead of showing
"0".

Show "0" instead of "" when route length cannot be calculated yet.

Slightly change wording ("Energy per 100km").
2019-05-30 23:52:59 +02:00
Gautier Pelloux-Prayer
970a34981f Add prettier and reformat code 2019-05-17 20:55:39 +02:00
Norbert Renner
6d3a7a6b1c Restore 3-digit distance title (see #38) removed with PR #56 2018-01-27 11:31:41 +01:00
Norbert Renner
20959fd287 Refactor duplicate abbr definitions; add kWh abbr 2018-01-27 11:13:30 +01:00
Norbert Renner
102e978581 Merge and adapt PR #95 car-eco/fast + display energy/time 2018-01-25 19:05:46 +01:00
Brenschede
868fcb1100 car-eco/fast + display energy/time 2017-09-25 20:17:06 +02:00
Gautier Pelloux-Prayer
d7e476db82 Updating UI to also fit on mobile devices. Fix #34 2017-01-23 10:47:28 +01:00
Norbert Renner
a54cc31a0f Add mean cost to stats (+ small refactoring), closes #39 2016-06-08 18:19:54 +02:00
Norbert Renner
0bffe0cd7c Add tooltip to display length in meter precision (3 digits). Closes #38 2016-06-08 12:37:54 +02:00
Norbert Renner
726cf4bba6 switch to GeoJSON response format instead of GPX:
- use BRouter track stats
- remove leaflet-gpx plugin
2014-08-22 10:10:07 +02:00
Norbert Renner
4cc16bccd0 initial commit 2014-01-27 18:34:48 +01:00