% if trip.distance.present? %> <%= trip.distance_in_unit(distance_unit).round %> <%= distance_unit %> <% else %> Calculating... <% end %>