<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,10 @@
     &lt;%= &quot;#{params[:status].titleize if params[:status]} Comments | 
         #{link_to('Download CSV', {:format =&gt; 'csv', :status =&gt; params[:status]})}&quot; %&gt;
   &lt;% else %&gt;
-    &lt;%= &quot;#{@page.comments_count} #{pluralize(@page.comments_count, &quot;Comment&quot;)} on #{link_to(@page.title, page_edit_url(@page.id))}&quot; %&gt;
+    &lt;%= &quot;#{@page.comments_count} #{pluralize(@page.comments_count, &quot;Comment&quot;)} on 
+         #{link_to(@page.title, page_edit_url(@page.id))}| 
+         #{link_to('Download CSV', {:format =&gt; 'csv', :status =&gt; params[:status], :page_id =&gt; @page.id})}
+         &quot; %&gt;
   &lt;% end %&gt;  
 &lt;/h1&gt;
 </diff>
      <filename>app/views/admin/comments/index.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -7,8 +7,11 @@ class CommentsExtension &lt; Radiant::Extension
   
   define_routes do |map|
     map.with_options(:controller =&gt; 'admin/comments') do |comments| 
-      comments.comments_status 'admin/comments/:status'
-      comments.comments_status 'admin/comments/:status.:format'
+      comments.connect 'admin/comments/:status'
+      comments.connect 'admin/comments/:status.:format'
+      comments.connect 'admin/pages/:page_id/comments/:status.:format'
+      comments.connect 'admin/pages/:page_id/comments/all.:format'
+      
       comments.resources :comments, :path_prefix =&gt; &quot;/admin&quot;, :name_prefix =&gt; &quot;admin_&quot;, :member =&gt; {:approve =&gt; :get, :unapprove =&gt; :get}
       comments.admin_page_comments 'admin/pages/:page_id/comments/:action'
       comments.admin_page_comment 'admin/pages/:page_id/comments/:id/:action'</diff>
      <filename>comments_extension.rb</filename>
    </modified>
    <modified>
      <diff>@@ -23,4 +23,16 @@ class CommentTest &lt; Test::Unit::TestCase
     assert_equal(comment.content, comment_stored.content)
   end
   
+  def test_download_csv_routes
+    assert_routing &quot;admin/comments/all&quot;,
+      {:controller =&gt; &quot;admin/comments&quot;, :action =&gt; &quot;index&quot;, :status =&gt; &quot;all&quot;}
+    assert_routing &quot;admin/comments/all.csv&quot;,
+      {:controller =&gt; &quot;admin/comments&quot;, :action =&gt; &quot;index&quot;, :status =&gt; &quot;all&quot;, :format =&gt; 'csv'}
+
+    assert_routing &quot;admin/pages/6/comments/all.csv&quot;,
+      {:controller =&gt; &quot;admin/comments&quot;, :action =&gt; &quot;index&quot;, :status =&gt; &quot;all&quot;, :format =&gt; 'csv', :page_id =&gt; &quot;6&quot;}
+    assert_generates &quot;admin/pages/6/comments/all.csv&quot;,
+      {:controller =&gt; &quot;admin/comments&quot;, :action =&gt; &quot;index&quot;, :format =&gt; 'csv', :page_id =&gt; &quot;6&quot;}
+  end
+  
 end</diff>
      <filename>test/unit/comment_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7ead33114f8d989e280a565d5e7e238ad5088933</id>
    </parent>
  </parents>
  <author>
    <name>Michael Hale</name>
    <email>mikehale@gmail.com</email>
  </author>
  <url>http://github.com/levelg/radiant-comments/commit/d1945f6d950b350806c0d66bcb82137f102ad326</url>
  <id>d1945f6d950b350806c0d66bcb82137f102ad326</id>
  <committed-date>2008-07-24T10:41:04-07:00</committed-date>
  <authored-date>2008-07-24T10:41:04-07:00</authored-date>
  <message>nicer urls for csv downloads</message>
  <tree>dd5485fc8ff5434d2c0b991d5a2447f95c30daeb</tree>
  <committer>
    <name>Michael Hale</name>
    <email>mikehale@gmail.com</email>
  </committer>
</commit>
