do not allow comments on pages older than 3 months... at least for now

master
Coleman 2008-08-13 10:22:08 -05:00
parent 8d281312ca
commit 1abe07ef85
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<% throw_content :for_sidebar do -%>
<% if allowed_to?(:edit_page, @page) -%><a href="<%= url(:edit_page, :id => @page.name.gsub(/ /, '_')) -%>" rel="nofollow"><img src="/images/document-save.png" /> Edit page</a><br /><% end -%>
<% if allowed_to?(:delete_page, @page) -%><a href="<%= url(:delete_page, :id => @page.name.gsub(/ /, '_')) -%>" onclick="if(!confirm('Are you sure you want to delete this page?')){return false;}" rel="nofollow"><img src="/images/edit-delete.png" /> Destroy page</a><br /><% end -%>
<a href="<%= url(:controller => 'comments', :action => 'new', :page_id => @page.name.gsub(/ /, '_')) -%>" rel="nofollow"><img src="/images/mail-message-new.png" /> Post a comment</a><br />
<% if @page.created_at + 3.months > Time.now -%><a href="<%= url(:controller => 'comments', :action => 'new', :page_id => @page.name.gsub(/ /, '_')) -%>" rel="nofollow"><img src="/images/mail-message-new.png" /> Post a comment</a><br /><% end -%>
<% end -%>
<%= partial :page, :with => [ @page ] %>