]> git.openstreetmap.org Git - rails.git/blob - app/views/trace/_trace.rhtml
lots of rails gpx stuff
[rails.git] / app / views / trace / _trace.rhtml
1 <tr>
2   <% cl = cycle('table0', 'table1') %>
3   <td class="<%= cl %>">
4     <% if trace.inserted %>
5     <a href="<%= url_for :controller => 'trace', :action => 'view', :id => trace.id, :user_login => trace.user.display_name %>">
6       <img src="<%= url_for :controller => 'trace', :action => 'icon', :id => trace.id, :user_login => trace.user.display_name %>" border="0">
7     </a>
8     <% end %>
9   </td>
10   <td class="<%= cl %>"><%= link_to trace.name, {:controller => 'trace', :action => 'onetrace', :id => trace.id} %>
11     <span class="gpxsummary" title="<%= trace.timestamp %>"> ... 
12       <% if trace.inserted %> 
13       (<%= trace.size %> points)
14       <% end %> 
15       ... <%= time_ago_in_words( trace.timestamp ) %>  ago</span>
16     <a href="/traces/user/blars/12701" title="more detail..." >more</a> /
17     <a href="/edit.html?lat=34.1032333&lon=-118.2272333&zoom=14" title="create maps">map</a><br />
18       <%= trace.description %>
19     <br />
20     by <%= link_to trace.user.display_name, {:controller => 'trace', :action => 'list', :user => trace.user.display_name} %>
21   </td>
22 </tr>