[ranch] 68: Link regression template to the system diff template.

https://svn.lrde.epita.fr/svn/ranch/trunk Index: ChangeLog from Nicolas Despr�s <nicolas.despres@gmail.com> Link regression template to the system diff template. * web/ranch/app/helpers/benches_helper.rb: Add link from the revision range system change to the anchor in the diff template. * web/ranch/app/helpers/systems_helper.rb: Add anchors. benches_helper.rb | 6 +++++- systems_helper.rb | 11 +++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) Index: web/ranch/app/helpers/benches_helper.rb --- web/ranch/app/helpers/benches_helper.rb (revision 67) +++ web/ranch/app/helpers/benches_helper.rb (working copy) @@ -41,7 +41,11 @@ :action => "show", :system_id => change1.system_id)} </td><td> - #{change1.revision}-#{change2.revision} + #{link_to "#{change1.revision}-#{change2.revision}", + :controller => "systems", + :action => "diff", + :system_id => change1.system_id, + :anchor => change1.system_id} </td></tr> ) end Index: web/ranch/app/helpers/systems_helper.rb --- web/ranch/app/helpers/systems_helper.rb (revision 67) +++ web/ranch/app/helpers/systems_helper.rb (working copy) @@ -4,7 +4,9 @@ ret = "<table>" system = systems.shift ret += %( - <tr><td> + <tr> + #{content_tag "a", "", :name => system.id} + <td> #{system.created_at} </td><td> <table> @@ -25,10 +27,11 @@ for system in systems do diff = prev.diff(system) ret += %( - <tr><td> + <tr> + #{content_tag "a", "", :name => system.id} + <td> #{system.created_at} - </td><td> - <table> + </td><td><table> ) for field in diff do ret += %(
participants (1)
-
Nicolas Despr�s