openstreetmap-website/app/views/diary_entry/_location.html.erb
Harry Wood 53fc3e8919 Remove edit links from geo-located diary entries
Jumping straight into the editor from a diary entry is not a
particularly useful thing to do. Fixes trac ticket #3626.
2011-04-03 13:46:06 +01:00

9 lines
619 B
Text

<%= t 'diary_entry.location.location' %>
<abbr class="geo" title="<%= number_with_precision(location.latitude, :precision => 4) %>; <%= number_with_precision(location.longitude, :precision => 4) %>">
<% cache(:controller => 'diary_entry', :action => 'view', :display_name => location.user.display_name, :id => location.id, :part => "location") do %>
<%= describe_location location.latitude, location.longitude, 14, location.language_code %>
<% end %>
</abbr>
(<%=link_to t('diary_entry.location.view'), :controller => 'site', :action => 'index', :lat => location.latitude, :lon => location.longitude, :zoom => 14 %>)