mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
15 lines
517 B
Text
15 lines
517 B
Text
|
|
<% if trip.countries.any? %>
|
||
|
|
<p class="text-lg text-base-content/60">
|
||
|
|
<%= "#{trip.countries.join(', ')} (#{trip.distance} #{DISTANCE_UNIT})" %>
|
||
|
|
</p>
|
||
|
|
<% elsif trip.visited_countries.present? %>
|
||
|
|
<p class="text-lg text-base-content/60">
|
||
|
|
<%= "#{trip.visited_countries.join(', ')} (#{trip.distance} #{DISTANCE_UNIT})" %>
|
||
|
|
</p>
|
||
|
|
<% else %>
|
||
|
|
<p class="text-md text-base-content/60">
|
||
|
|
<span>Countries are being calculated...</span>
|
||
|
|
<span class="loading loading-dots loading-sm"></span>
|
||
|
|
</p>
|
||
|
|
<% end %>
|