Ticket #883: 20080301MarkerForStartCord.diff

File 20080301MarkerForStartCord.diff, 2.3 KB (added by Shaun McDonald, 12 years ago)

marker for the start point

  • app/views/trace/view.rhtml

     
    1717    <td><%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %></td></tr>
    1818  <tr>
    1919    <td>Start coordinate:</td>
    20     <td><div class="geo" style="display: inline"><span class="latitude"><%= @trace.latitude %></span>; <span class="longitude"><%= @trace.longitude %></span></div> (<%=link_to 'map', :controller => 'site', :action => 'index', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %> / <%=link_to 'edit', :controller => 'site', :action => 'edit', :lat => @trace.latitude, :lon => @trace.longitude, :gpx=> @trace.id, :zoom => 14 %>)</td>
     20    <td><div class="geo" style="display: inline"><span class="latitude"><%= @trace.latitude %></span>; <span class="longitude"><%= @trace.longitude %></span></div> (<%=link_to 'map', :controller => 'site', :action => 'index', :mlat => @trace.latitude, :mlon => @trace.longitude, :zoom => 14 %> / <%=link_to 'edit', :controller => 'site', :action => 'edit', :lat => @trace.latitude, :lon => @trace.longitude, :gpx=> @trace.id, :zoom => 14 %>)</td>
    2121  </tr>
    2222  <% end %>
    2323  <tr>
  • app/views/trace/_trace.rhtml

     
    1414      <% end %>
    1515      ... <%= time_ago_in_words( trace.timestamp ) %>  ago</span>
    1616      <%= link_to 'more', {:controller => 'trace', :action => 'view', :display_name => trace.user.display_name, :id => trace.id}, {:title => 'View Trace Details'} %> /
    17       <%= link_to_if trace.inserted?, 'map', {:controller => 'site', :action => 'index', :lat => trace.latitude, :lon => trace.longitude, :zoom => 14}, {:title => 'View Map'} %> /
     17      <%= link_to_if trace.inserted?, 'map', {:controller => 'site', :action => 'index', :mlat => trace.latitude, :mlon => trace.longitude, :zoom => 14}, {:title => 'View Map'} %> /
    1818      <%= link_to_if trace.inserted?, 'edit', {:controller => 'site', :action => 'edit', :lat => trace.latitude, :lon => trace.longitude, :zoom => 14, :gpx => trace.id }, {:title => 'Edit Map'} %>
    1919      <br />
    2020      <%= escape_once(trace.description) %>