From 2b95ed8be7eceeeb36ac27c0abc1f144fa9c7df6 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 16 Dec 2010 11:56:41 -0300 Subject: [PATCH] Restrict "Suggest an article" to comunity blogs --- app/views/content_viewer/view_page.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/content_viewer/view_page.rhtml b/app/views/content_viewer/view_page.rhtml index e7b969f..ba98f70 100644 --- a/app/views/content_viewer/view_page.rhtml +++ b/app/views/content_viewer/view_page.rhtml @@ -51,7 +51,7 @@ <% end %> <% else %> - <% if profile.community? %> + <% if profile.community? && (@page.blog? || @page.parent && @page.parent.blog?) %> <%= link_to content_tag( 'span', _('Suggest an article') ), profile.admin_url.merge({ :controller => 'cms', :action => 'suggest_an_article'}), :class => 'button with-text icon-new' %> <% end %> <% end %> -- libgit2 0.21.2