more trace stuff

This commit is contained in:
Steve Coast 2006-11-27 21:43:42 +00:00
parent fb1467a944
commit 46e9dcbcc7
3 changed files with 24 additions and 3 deletions

View 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>

View file

@ -3,4 +3,10 @@
<%= link_to 'See just your traces', {:controller => 'trace', :action => 'mine'} %>
<% end %>
<%= render :partial => 'trace', :collection => @traces %>
<table id="keyvalue" cellpadding="3">
<tr>
<th></th>
<th></th>
</tr>
<%= render :partial => 'trace', :collection => @traces %>
</table>

View file

@ -28,7 +28,7 @@ ActionController::Routing::Routes.draw do |map|
map.connect '/traces', :controller => 'trace', :action => 'list'
map.connect '/traces/mine', :controller => 'trace', :action => 'users'
map.connect '/traces/user/:user_login/:id', :controller => 'trace', :action => 'user'
map.connect '/traces/user/:user/:id', :controller => 'trace', :action => 'list', :id => nil
map.connect ':controller/:action/:id'
end