<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -25,8 +25,20 @@
   (&lt;:a :href &quot;/blog/index.zek&quot; &quot;&lt;&lt;Home&quot;)
   (&lt;:h1 (&lt;:as-html (blog-post.title (detail.post self))))
   (&lt;:p (&lt;:as-html (blog-post.body (detail.post self))))
-  (&lt;:h3 &quot;Comments:&quot;)
-  (dolist (comment (comments-as-list (detail.post self)))
-    (&lt;:strong (&lt;:as-html (comment.email comment)))
-    (&lt;:p (&lt;:as-html (comment.body comment)))
-    (&lt;:hr)))
\ No newline at end of file
+  (&lt;ucw:a :action (edit-blog self) &quot;Edit Post&quot;)
+  (when (have-comments? (detail.post self))
+    (&lt;:h3 &quot;Comments:&quot;)
+    (dolist (comment (comments-as-list (detail.post self)))
+      (&lt;:strong (&lt;:as-html (comment.email comment)))
+      (&lt;:p (&lt;:as-html (comment.body comment)))
+      (&lt;:hr))))
+
+(defaction edit-blog ((self detail))
+  (call 'edit-form :post (detail.post self)))
+
+(ucw::defcomponent edit-form ()
+  ((post :accessor edit-form.post
+	 :initarg :post)))
+
+(defmethod ucw::render ((self edit-form))
+  (&lt;:a :href &quot;/blog/index.zek&quot; &quot;&lt;&lt;Home&quot;))</diff>
      <filename>layout.lisp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>af65844eddba6ea642281ff22a03479fd1595ae7</id>
    </parent>
  </parents>
  <author>
    <name>Zekeriya KOC</name>
    <email>zekus@zetbook.(none)</email>
  </author>
  <url>http://github.com/zekzekus/zek-blog/commit/dfff67539f9408244e9d45b5da1d7c5fba4f09d6</url>
  <id>dfff67539f9408244e9d45b5da1d7c5fba4f09d6</id>
  <committed-date>2009-10-31T12:25:30-07:00</committed-date>
  <authored-date>2009-10-31T12:25:30-07:00</authored-date>
  <message>a component to edit blog posts added</message>
  <tree>b6d7a64e2d0c1722921db3f8ce5c65c4426858a2</tree>
  <committer>
    <name>Zekeriya KOC</name>
    <email>zekus@zetbook.(none)</email>
  </committer>
</commit>
