mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-09 08:47:11 -05:00
24 lines
857 B
Text
24 lines
857 B
Text
<% if trip.path.present? %>
|
|
<div
|
|
id='map'
|
|
class="w-full h-full rounded-lg z-0"
|
|
data-controller="trips"
|
|
data-trips-target="container"
|
|
data-distance_unit="<%= DISTANCE_UNIT %>"
|
|
data-api_key="<%= current_user.api_key %>"
|
|
data-user_settings="<%= current_user.settings.to_json %>"
|
|
data-path="<%= trip.path.to_json %>"
|
|
data-started_at="<%= trip.started_at %>"
|
|
data-ended_at="<%= trip.ended_at %>"
|
|
data-timezone="<%= Rails.configuration.time_zone %>">
|
|
<div data-trips-target="container" class="h-[25rem] w-full min-h-screen">
|
|
</div>
|
|
</div>
|
|
<% else %>
|
|
<div class="flex items-center justify-center h-full">
|
|
<div class="text-center">
|
|
<p class="text-base-content/60">Trip path is being calculated...</p>
|
|
<div class="loading loading-spinner loading-lg mt-4"></div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|