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