Commit 6738f312170e5a69aa270e8b3c001d5d1ec0e9b0

Authored by Antonio Terceiro
1 parent 6fef6ebe

ActionItem1049: don't display remove button for blogs

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/content_viewer/view_page.rhtml
@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 :class => 'button with-text icon-edit' %> 31 :class => 'button with-text icon-edit' %>
32 <% end %> 32 <% end %>
33 <% if !(profile.kind_of?(Enterprise) && environment.enabled?('disable_cms')) %> 33 <% if !(profile.kind_of?(Enterprise) && environment.enabled?('disable_cms')) %>
34 - <% if @page != profile.home_page %> 34 + <% if @page != profile.home_page && !@page.blog? %>
35 <%= link_to content_tag( 'span', _('Delete') ), 35 <%= link_to content_tag( 'span', _('Delete') ),
36 profile.admin_url.merge({ :controller => 'cms', :action => 'destroy', :id => @page }), 36 profile.admin_url.merge({ :controller => 'cms', :action => 'destroy', :id => @page }),
37 :class => 'button with-text icon-delete' %> 37 :class => 'button with-text icon-delete' %>