parent
248f63f728
commit
a5124ed409
2 changed files with 5 additions and 4 deletions
|
@ -14,9 +14,9 @@
|
|||
<% if @user.home_lon and @user.home_lat and contact.home_lon and contact.home_lat %>
|
||||
<% distance = @user.distance(contact) %>
|
||||
<% if distance < 1 %>
|
||||
(<%= t 'user.show.m away', :count => (distance * 1000).round %>)
|
||||
(<%= t 'users.show.m away', :count => (distance * 1000).round %>)
|
||||
<% else %>
|
||||
(<%= t 'user.show.km away', :count => distance.round %>)
|
||||
(<%= t 'users.show.km away', :count => distance.round %>)
|
||||
<% end %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue