Commit 7fac6d07b27778c3c7ff9d3942c8f8a8e940ccc4
1 parent
dd86093f
Exists in
master
and in
29 other branches
ActionItem879: enterprise cannot create new articles
:-/
Showing
1 changed file
with
10 additions
and
8 deletions
Show diff stats
app/views/content_viewer/view_page.rhtml
... | ... | @@ -35,15 +35,17 @@ |
35 | 35 | <%= link_to content_tag( 'span', label_for_edit_article(@page) ), |
36 | 36 | { :controller => 'cms', :action => 'edit', :id => @page }, |
37 | 37 | :class => 'button with-text icon-edit' %> |
38 | - <%= link_to content_tag( 'span', _('Delete') ), | |
39 | - { :controller => 'cms', :action => 'destroy', :id => @page }, | |
40 | - :class => 'button with-text icon-delete' %> | |
41 | - <% if profile.kind_of?(Person) %> | |
42 | - <%= link_to content_tag( 'span', _('Spread this') ), | |
43 | - { :controller => 'cms', :action => 'publish', :id => @page }, | |
44 | - :class => 'button with-text icon-spread' %> | |
38 | + <% if !profile.kind_of?(Enterprise) %> | |
39 | + <%= link_to content_tag( 'span', _('Delete') ), | |
40 | + { :controller => 'cms', :action => 'destroy', :id => @page }, | |
41 | + :class => 'button with-text icon-delete' %> | |
42 | + <% if profile.kind_of?(Person) %> | |
43 | + <%= link_to content_tag( 'span', _('Spread this') ), | |
44 | + { :controller => 'cms', :action => 'publish', :id => @page }, | |
45 | + :class => 'button with-text icon-spread' %> | |
46 | + <% end %> | |
47 | + <%= lightbox_button(:new, label_for_new_article(@page), :controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent))) %> | |
45 | 48 | <% end %> |
46 | - <%= lightbox_button(:new, label_for_new_article(@page), :controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent))) %> | |
47 | 49 | </div> |
48 | 50 | <% end %> |
49 | 51 | </div> | ... | ... |