From aa121fa046188bf17c10dff749abe134aa239603 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 2 Apr 2011 15:48:56 +0100 Subject: [PATCH] Make diary locations into a link and drop the separate view link --- app/views/diary_entry/_location.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/diary_entry/_location.html.erb b/app/views/diary_entry/_location.html.erb index 59ab013f7..4779471de 100644 --- a/app/views/diary_entry/_location.html.erb +++ b/app/views/diary_entry/_location.html.erb @@ -1,9 +1,9 @@ <%= t 'diary_entry.location.location' %> + <% 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 %> - -(<%=link_to t('diary_entry.location.view'), :controller => 'site', :action => 'index', :lat => location.latitude, :lon => location.longitude, :zoom => 14 %>) + -- 2.39.5