<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,7 +5,6 @@ class CommentsController &lt; ApplicationController
     before_filter :login_required, :except =&gt; [ :new, :create ]
     before_filter :find_post
 
-
     def index
         @comments = @post.comments
     end</diff>
      <filename>app/controllers/comments_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,22 +1,26 @@
-&lt;h1&gt;Comments for &lt;%= @post.title %&gt;&lt;/h1&gt;
+&lt;h1&gt;all comments on &lt;%= @post.title %&gt;&lt;/h1&gt;
 &lt;table&gt;
     &lt;tr&gt;
-        &lt;th&gt;Author&lt;/th&gt;
-        &lt;th&gt;Email&lt;/th&gt;
-        &lt;th&gt;Url&lt;/th&gt;
-        &lt;th&gt;Body&lt;/th&gt;
+        &lt;th&gt;author&lt;/th&gt;
+        &lt;th&gt;email&lt;/th&gt;
+        &lt;th&gt;comments&lt;/th&gt;
     &lt;/tr&gt;
-    &lt;% for comment in @comments %&gt;
-        &lt;tr&gt;
-            &lt;td&gt;&lt;%=h comment.author %&gt;&lt;/td&gt;
-            &lt;td&gt;&lt;%=h comment.email %&gt;&lt;/td&gt;
-            &lt;td&gt;&lt;%=h comment.url %&gt;&lt;/td&gt;
-            &lt;td&gt;&lt;%=h comment.body %&gt;&lt;/td&gt;
-            &lt;td&gt;&lt;%= link_to 'Show', post_comment_path(@post, comment) %&gt;&lt;/td&gt;
-            &lt;td&gt;&lt;%= link_to 'Edit', edit_post_comment_path(@post, comment) %&gt;&lt;/td&gt;
-            &lt;td&gt;&lt;%= link_to 'Destroy', post_comment_path(@post, comment), :confirm =&gt; 'Are you sure?', :method =&gt; :delete %&gt;&lt;/td&gt;
-        &lt;/tr&gt;
-    &lt;% end %&gt;
+    &lt;%- @comments.each do |comment| -%&gt;
+    &lt;tr&gt;
+        &lt;td&gt;
+            &lt;%- if comment.url? -%&gt;
+                &lt;%= link_to comment.author, comment.url -%&gt;
+            &lt;%- else -%&gt;
+                &lt;%= comment.author -%&gt;
+            &lt;%- end -%&gt;
+        &lt;/td&gt;
+        &lt;td&gt;&lt;%= mail_to comment.email, false, { :replace_at =&gt; ' [at] ', :encode =&gt; 'javascript' } -%&gt;&lt;/td&gt;
+        &lt;td&gt;&lt;/td&gt;
+        &lt;td&gt;&lt;%= link_to :show, post_comment_path(@post, comment) %&gt;&lt;/td&gt;
+        &lt;td&gt;&lt;%= link_to :edit, edit_post_comment_path(@post, comment) %&gt;&lt;/td&gt;
+        &lt;td&gt;&lt;%= link_to :destroy, post_comment_path(@post, comment), :confirm =&gt; 'are you sure?', :method =&gt; :delete %&gt;&lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;%- end -%&gt;
 &lt;/table&gt;
 &lt;br /&gt;
-&lt;%= link_to 'New comment', new_post_comment_path(@post) %&gt; | &lt;%= link_to 'Back to Post', @post %&gt;
+&lt;%= link_to :back, @post %&gt; | &lt;%= render :partial =&gt; 'shared/homelink' -%&gt;</diff>
      <filename>app/views/comments/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
 &lt;h1&lt;%= ' class=&quot;draft&quot;' unless @post.published? %&gt;&gt;editing &lt;%= link_to @post.title, @post, :title =&gt; 'go back to ' + h(@post.title) %&gt;&lt;/h1&gt;
 &lt;%= render :partial =&gt; 'form' %&gt;
-&lt;%= link_to 'back', @post, :title =&gt; 'go back to ' + h(@post.title) %&gt; | &lt;%= render :partial =&gt; 'homelink' %&gt;
+&lt;%= link_to 'back', @post, :title =&gt; 'go back to ' + h(@post.title) %&gt; | &lt;%= render :partial =&gt; 'shared/homelink' %&gt;</diff>
      <filename>app/views/posts/edit.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
 &lt;h1&gt;new post&lt;/h1&gt;
 &lt;%= render :partial =&gt; 'form' %&gt;
-&lt;%= render :partial =&gt; 'homelink' %&gt;
+&lt;%= render :partial =&gt; 'shared/homelink' %&gt;</diff>
      <filename>app/views/posts/new.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -5,4 +5,4 @@
 &lt;% end -%&gt;
 &lt;%= render :partial =&gt; 'post', :locals =&gt; { :post =&gt; @post } -%&gt;
 &lt;%= render :partial =&gt; 'comments' -%&gt;
-&lt;%= render :partial =&gt; 'homelink' -%&gt;
+&lt;%= render :partial =&gt; 'shared/homelink' -%&gt;</diff>
      <filename>app/views/posts/show.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
 &lt;h1&gt;posts tagged with &lt;%= params[:id] %&gt;&lt;/h1&gt;
 &lt;%= render :partial =&gt; 'results' %&gt;
-&lt;%= render :partial =&gt; 'homelink' %&gt;
+&lt;%= render :partial =&gt; 'shared/homelink' %&gt;</diff>
      <filename>app/views/posts/tagged_with.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>89d15d5897213c2f4f875f0afc04bb93fe6ab804</id>
    </parent>
  </parents>
  <author>
    <name>tweak</name>
    <email>tweakr@gmail.com</email>
  </author>
  <url>http://github.com/tweak/blog/commit/5d0c8ea3fe4a54fb8d33d5cc835345ab4220b4cd</url>
  <id>5d0c8ea3fe4a54fb8d33d5cc835345ab4220b4cd</id>
  <committed-date>2009-11-08T13:28:07-08:00</committed-date>
  <authored-date>2009-11-08T13:28:07-08:00</authored-date>
  <message>updated references to homelink partial</message>
  <tree>66e4c6d2eee85154b0e29730c6ffb59b6d80176b</tree>
  <committer>
    <name>tweak</name>
    <email>tweakr@gmail.com</email>
  </committer>
</commit>
