public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
fix bug where you're unable to delete an empty comment

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@1973 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Fri Sep 01 12:35:25 -0700 2006
commit  59e9e840b811c2f89f8f9931142bdf76788f60cb
tree    37943c638f4ee22b35f2f6442d7199d9704ff95e
parent  194a4fb25944b30f9bdb42fabfda1c2cd1c227ab
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 * SVN *
0
 
0
+* fix bug where you're unable to delete an empty comment
0
+
0
 * Ignore drafts and articles published in the future when searching.
0
 
0
 * sanitize posted comments
...
11
12
13
 
14
 
15
16
17
...
11
12
13
14
15
16
17
18
19
0
@@ -11,7 +11,9 @@
0
     <input type="checkbox" title="" />
0
     <% end %>
0
     <a name="comment-<%= comment.id %>"></a>
0
+ <% unless comment.body.blank? -%>
0
     <blockquote><p>"<%= strip_tags(comment.body) %>"</p></blockquote>
0
+ <% end -%>
0
     <span class="meta">
0
       <cite>&mdash; <%= author_link_for comment %><%= %( (#{comment.author_email})) unless comment.author_email.blank? %></cite>
0
       

Comments

    No one has commented yet.