diff --git a/app/views/pages/show.html.erb b/app/views/pages/show.html.erb index c84dc58..30592d8 100644 --- a/app/views/pages/show.html.erb +++ b/app/views/pages/show.html.erb @@ -1,7 +1,7 @@ <% throw_content :for_sidebar do -%> <% if allowed_to?(:edit_page, @page) -%> Edit page
<% end -%> <% if allowed_to?(:delete_page, @page) -%> Destroy page
<% end -%> - Post a comment
+ <% if @page.created_at + 3.months > Time.now -%> Post a comment
<% end -%> <% end -%> <%= partial :page, :with => [ @page ] %>