]> git.openstreetmap.org Git - rails.git/commitdiff
Make diary locations into a link and drop the separate view link
authorTom Hughes <tom@compton.nu>
Sat, 2 Apr 2011 14:48:56 +0000 (15:48 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 3 Apr 2011 12:46:15 +0000 (13:46 +0100)
app/views/diary_entry/_location.html.erb

index 59ab013f781bae3e2e234cc7d95a0432c3a86713..4779471de2184b8b0c0d879abad9353b79433a76 100644 (file)
@@ -1,9 +1,9 @@
 <%= t 'diary_entry.location.location' %>
 
 <%= t 'diary_entry.location.location' %>
 
+<a href="<%= url_for :controller => 'site', :action => 'index', :lat => location.latitude, :lon => location.longitude, :zoom => 14 %>">
 <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>
 <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 %>)
+</a>