diff --git a/app/controllers/my_profile/cms_controller.rb b/app/controllers/my_profile/cms_controller.rb index bf1f603..ba84479 100644 --- a/app/controllers/my_profile/cms_controller.rb +++ b/app/controllers/my_profile/cms_controller.rb @@ -1,5 +1,5 @@ class CmsController < MyProfileController - + # FIXME add the access control again # protect 'post_content', :profile, :only => [:edit, :new, :reorder, :delete] diff --git a/app/views/cms/text_html_new.rhtml b/app/views/cms/text_html_new.rhtml index 8aab311..86c2e03 100644 --- a/app/views/cms/text_html_new.rhtml +++ b/app/views/cms/text_html_new.rhtml @@ -1,3 +1,5 @@ +<%= render :file => 'shared/tiny_mce' %> + <%= error_messages_for 'article' %> <% labelled_form_for 'article', @article do |f| %> diff --git a/app/views/cms/view.rhtml b/app/views/cms/view.rhtml index 743905e..cc10342 100644 --- a/app/views/cms/view.rhtml +++ b/app/views/cms/view.rhtml @@ -31,6 +31,7 @@ <% if @article %> <%= link_to_edit_article(@article) %> + <%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => @article }, { :method => :post } %>