Ticket #1872: tidy_diary_coordinates.patch

File tidy_diary_coordinates.patch, 1.7 KB (added by Dan Karran, 11 years ago)
  • _diary_entry.rhtml

     
    11<b><%= link_to h(diary_entry.title), :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id %></b><br />
    22<%= htmlize(diary_entry.body) %>
    33<% if diary_entry.latitude and diary_entry.longitude %>
    4 Coordinates: <div class="geo" style="display: inline"><span class="latitude"><%= diary_entry.latitude %></span>; <span class="longitude"><%= diary_entry.longitude %></span></div> (<%=link_to 'map', :controller => 'site', :action => 'index', :lat => diary_entry.latitude, :lon => diary_entry.longitude, :zoom => 14 %> / <%=link_to 'edit', :controller => 'site', :action => 'edit', :lat => diary_entry.latitude, :lon => diary_entry.longitude, :zoom => 14 %>)<br/>
     4Coordinates: <div class="geo" style="display: inline"><span class="latitude"><%= number_with_precision(diary_entry.latitude, 4) %></span>; <span class="longitude"><%= number_with_precision(diary_entry.longitude, 4) %></span></div> (<%=link_to 'map', :controller => 'site', :action => 'index', :lat => number_with_precision(diary_entry.latitude, 4), :lon => number_with_precision(diary_entry.longitude, 4), :zoom => 14 %> / <%=link_to 'edit', :controller => 'site', :action => 'edit', :lat => number_with_precision(diary_entry.latitude, 4), :lon => number_with_precision(diary_entry.longitude, 4), :zoom => 14 %>)<br/>
    55<% end %>
    66Posted by <b><%= link_to h(diary_entry.user.display_name), :controller => 'user', :action => 'view', :display_name => diary_entry.user.display_name %></b> at <%= diary_entry.created_at %>
    77<% if params[:action] == 'list' %>