X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1df4234c72c9a8b6f4c996c7019ea8f10145dc87..0b913efd0583570c5a9cd900189fc88085218d61:/app/views/diary_entry/_location.html.erb diff --git a/app/views/diary_entry/_location.html.erb b/app/views/diary_entry/_location.html.erb new file mode 100644 index 000000000..ec8ea462a --- /dev/null +++ b/app/views/diary_entry/_location.html.erb @@ -0,0 +1,11 @@ +<% cache(:controller => 'diary_entry', :action => 'view', :display_name => location.user.display_name, :id => location.id, :part => "location") do %> +<%= t 'diary_entry.location.location' %> + + +<%= describe_location location.latitude, location.longitude, 14, location.language_code %> + + +(<%=link_to t('diary_entry.location.view'), :controller => 'site', :action => 'index', :lat => location.latitude, :lon => location.longitude, :zoom => 14 %> +/ +<%=link_to t('diary_entry.location.edit'), :controller => 'site', :action => 'edit', :lat => location.latitude, :lon => location.longitude, :zoom => 14 %>) +<% end %>