% if trip.distance.present? %> <%= trip.distance %> <%= distance_unit %> <% else %> Calculating... <% end %>