diff --git a/app/controllers/my_profile/cms_controller.rb b/app/controllers/my_profile/cms_controller.rb index f113080..c8cef89 100644 --- a/app/controllers/my_profile/cms_controller.rb +++ b/app/controllers/my_profile/cms_controller.rb @@ -27,7 +27,6 @@ class CmsController < MyProfileController parent_id = params ? params[:parent_id] : nil if !parent_id or !Article.find(parent_id).blog? articles += [ - Folder, RssFeed ] end @@ -38,7 +37,7 @@ class CmsController < MyProfileController end def special_article_types - [Blog, UploadedFile] + [Folder, Blog, UploadedFile] end def view diff --git a/app/views/cms/view.rhtml b/app/views/cms/view.rhtml index 6659451..3460ff2 100644 --- a/app/views/cms/view.rhtml +++ b/app/views/cms/view.rhtml @@ -18,6 +18,7 @@ <%= button :add, _('New folder'), :action => 'new', :type => 'Folder', :parent_id => parent_id %> <% end %> <%= lightbox_button('new', label_for_new_article(@article), :action => 'new', :parent_id => parent_id) %> + <%= button('save', _('Upload file'), :action => 'new', :parent_id => parent_id, :type => 'UploadedFile') %> <% end %>