mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Fix speed units on the Points page
This commit is contained in:
parent
5b2834599e
commit
8997d10658
3 changed files with 12 additions and 2 deletions
|
|
@ -1 +1 @@
|
||||||
0.24.0
|
0.24.1
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
# 0.24.1 - 2025-02-10
|
# 0.24.1 - 2025-02-11
|
||||||
|
|
||||||
## Custom map tiles
|
## Custom map tiles
|
||||||
|
|
||||||
|
|
@ -24,6 +24,10 @@ To set a custom tile URL, go to the user settings and set the `Maps` section to
|
||||||
ruby_dawarich_map_tiles_usage 99
|
ruby_dawarich_map_tiles_usage 99
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Speed on the Points page is now being displayed in kilometers per hour.
|
||||||
|
|
||||||
# 0.24.0 - 2025-02-10
|
# 0.24.0 - 2025-02-10
|
||||||
|
|
||||||
## Points speed units
|
## Points speed units
|
||||||
|
|
|
||||||
|
|
@ -120,4 +120,10 @@ module ApplicationHelper
|
||||||
|
|
||||||
'text-red-500'
|
'text-red-500'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def point_speed(speed)
|
||||||
|
return speed if speed.to_i <= 0
|
||||||
|
|
||||||
|
speed * 3.6
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue