]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/_trace.rhtml
more trace stuff
[rails.git] / app / views / trace / _trace.rhtml
index 3149e4c0ad25188180c96cbeb473663529626587..73fb5080ccc1f9b803a7c03abad456a7282543a9 100644 (file)
@@ -1 +1,16 @@
-bleh
+<tr>
+  <% cl = cycle('table0', 'table1') %>
+  <td class="<%= cl %>">image here</td>
+  <td class="<%= cl %>"><%= link_to trace.name, {:controller => 'trace', :action => 'onetrace', :id => trace.id} %>
+    <span class="gpxsummary" title="<%= trace.timestamp %>"> ... 
+      <% if trace.inserted %> 
+      (<%= trace.size %> points)
+      <% end %> 
+      ... <%= time_ago_in_words( trace.timestamp ) %>  ago</span>
+    <a href="/traces/user/blars/12701" title="more detail..." >more</a> /
+    <a href="/edit.html?lat=34.1032333&lon=-118.2272333&zoom=14" title="create maps">map</a><br />
+      <%= trace.description %>
+    <br />
+    by <%= link_to trace.user.display_name, {:controller => 'trace', :action => 'list', :user => trace.user.display_name} %>
+  </td>
+</tr>