Commit bc2a582c49fd2e2bd247d1368c6ccf6af8a01d80

Authored by AntonioTerceiro
1 parent 5269fd4b

ActionItem21: checkpoint



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@967 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/controllers/my_profile/cms_controller.rb
1 1 class CmsController < MyProfileController
2   -
  2 +
3 3 # FIXME add the access control again
4 4 # protect 'post_content', :profile, :only => [:edit, :new, :reorder, :delete]
5 5  
... ...
app/views/cms/text_html_new.rhtml
  1 +<%= render :file => 'shared/tiny_mce' %>
  2 +
1 3 <%= error_messages_for 'article' %>
2 4  
3 5 <% labelled_form_for 'article', @article do |f| %>
... ...
app/views/cms/view.rhtml
... ... @@ -31,6 +31,7 @@
31 31  
32 32 <% if @article %>
33 33 <%= link_to_edit_article(@article) %>
  34 + <%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => @article }, { :method => :post } %>
34 35 <h2><%= @article.name %></h2>
35 36 <%= @article.to_html %>
36 37 <% end %>
... ...
public/javascripts/noosfero_tiny_mce.js
... ... @@ -1,4 +0,0 @@
1   -tinyMCE.init({
2   - theme : "simple",
3   - editor_selector : "tiny_mce_editor"
4   -});