From 46e9dcbcc7ba632db77a2137ee0da2a66d77c47b Mon Sep 17 00:00:00 2001 From: Steve Coast Date: Mon, 27 Nov 2006 21:43:42 +0000 Subject: [PATCH 1/1] more trace stuff --- app/views/trace/_trace.rhtml | 17 ++++++++++++++++- app/views/trace/list.rhtml | 8 +++++++- config/routes.rb | 2 +- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/app/views/trace/_trace.rhtml b/app/views/trace/_trace.rhtml index 3149e4c0a..73fb5080c 100644 --- a/app/views/trace/_trace.rhtml +++ b/app/views/trace/_trace.rhtml @@ -1 +1,16 @@ -bleh + + <% cl = cycle('table0', 'table1') %> + image here + <%= link_to trace.name, {:controller => 'trace', :action => 'onetrace', :id => trace.id} %> + ... + <% if trace.inserted %> + (<%= trace.size %> points) + <% end %> + ... <%= time_ago_in_words( trace.timestamp ) %> ago + more / + map
+ <%= trace.description %> +
+ by <%= link_to trace.user.display_name, {:controller => 'trace', :action => 'list', :user => trace.user.display_name} %> + + diff --git a/app/views/trace/list.rhtml b/app/views/trace/list.rhtml index ce2e76349..6ff6b34a6 100644 --- a/app/views/trace/list.rhtml +++ b/app/views/trace/list.rhtml @@ -3,4 +3,10 @@ <%= link_to 'See just your traces', {:controller => 'trace', :action => 'mine'} %> <% end %> -<%= render :partial => 'trace', :collection => @traces %> + + + + + + <%= render :partial => 'trace', :collection => @traces %> +
diff --git a/config/routes.rb b/config/routes.rb index 620509473..d6ac73468 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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 -- 2.43.2