Commit e44d147e2ca7db004a743dc4cdc3c95a36fdaa12
1 parent
7124355e
Exists in
master
and in
22 other branches
ActionItem1003: another ugly workaround
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/views/content_viewer/view_page.rhtml
@@ -54,6 +54,9 @@ | @@ -54,6 +54,9 @@ | ||
54 | <%= lightbox_button(:new, label_for_new_article(@page), profile.admin_url.merge(:controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)))) %> | 54 | <%= lightbox_button(:new, label_for_new_article(@page), profile.admin_url.merge(:controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)))) %> |
55 | <% end %> | 55 | <% end %> |
56 | <% end %> | 56 | <% end %> |
57 | + <% if profile.kind_of?(Enterprise) && @page.display_as_gallery? %> | ||
58 | + <%= button('upload-file', _('Upload files'), :controller => 'cms', :action => 'upload_files', :parent_id => (@page.folder? ? @page : @page.parent)) %> | ||
59 | + <% end %> | ||
57 | </div> | 60 | </div> |
58 | <% end %> | 61 | <% end %> |
59 | </div> | 62 | </div> |