Commit 2b95ed8be7eceeeb36ac27c0abc1f144fa9c7df6

Authored by Antonio Terceiro
1 parent 77586e46

Restrict "Suggest an article" to comunity blogs

(ActionItem1732)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/content_viewer/view_page.rhtml
@@ -51,7 +51,7 @@ @@ -51,7 +51,7 @@
51 <% end %> 51 <% end %>
52 </div> 52 </div>
53 <% else %> 53 <% else %>
54 - <% if profile.community? %> 54 + <% if profile.community? && (@page.blog? || @page.parent && @page.parent.blog?) %>
55 <%= link_to content_tag( 'span', _('Suggest an article') ), profile.admin_url.merge({ :controller => 'cms', :action => 'suggest_an_article'}), :class => 'button with-text icon-new' %> 55 <%= link_to content_tag( 'span', _('Suggest an article') ), profile.admin_url.merge({ :controller => 'cms', :action => 'suggest_an_article'}), :class => 'button with-text icon-new' %>
56 <% end %> 56 <% end %>
57 <% end %> 57 <% end %>