Commit 6738f312170e5a69aa270e8b3c001d5d1ec0e9b0
1 parent
6fef6ebe
Exists in
master
and in
29 other branches
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 | 31 | :class => 'button with-text icon-edit' %> |
32 | 32 | <% end %> |
33 | 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 | 35 | <%= link_to content_tag( 'span', _('Delete') ), |
36 | 36 | profile.admin_url.merge({ :controller => 'cms', :action => 'destroy', :id => @page }), |
37 | 37 | :class => 'button with-text icon-delete' %> | ... | ... |