[typo] Comment box hiding?

Scott Laird scott at sigkill.org
Mon Sep 19 19:36:28 EDT 2005


On Sep 19, 2005, at 4:33 PM, Justus Pendleton wrote:

> Mike Purvis wrote:
>
>> Uh, second question: How would I make the comment form not show up  
>> when
>> comments are no longer accepted? Right now it seems to just  
>> swallow them
>> without any notice at all.
>>
>
> At the risk of repeating myself..."That works for me."
>
> It displays "Comments are disabled" instead of the comment form.  That
> done at the bottom of app/views/articles/read.rhtml:
>
> <% if @article.allow_comments? -%>
>    <%= render :partial => 'comment_box' %>
> <% else -%>
>    <p>Comments are disabled</p>
> <% end -%>

I *think* this went into the trunk after 2.5.5.


Scott


More information about the Typo-list mailing list