Change "Yesterday" to "Today" on the map page.

This commit is contained in:
Eugene Burmakin 2025-05-19 20:14:30 +02:00
parent ebd16240d4
commit 0b13b7c3b6
2 changed files with 3 additions and 2 deletions

View file

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Docker image is now using slim image to introduce some memory optimizations.
- The trip page now looks a bit nicer.
- The "Yesterday" button on the map page was changed to "Today". #1215
# 0.26.3 - 2025-05-18

View file

@ -42,8 +42,8 @@
</div>
<div class="w-full sm:w-6/12 md:w-2/12 lg:w-1/12">
<div class="flex flex-col space-y-2 text-center">
<%= link_to "Yesterday",
map_path(start_at: Date.yesterday.beginning_of_day, end_at: Date.yesterday.end_of_day, import_id: params[:import_id]),
<%= link_to "Today",
map_path(start_at: Time.current.beginning_of_day, end_at: Time.current.end_of_day, import_id: params[:import_id]),
class: "btn btn-neutral hover:btn-ghost" %>
</div>
</div>