Commit bc2a582c49fd2e2bd247d1368c6ccf6af8a01d80
1 parent
5269fd4b
Exists in
master
and in
29 other branches
ActionItem21: checkpoint
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@967 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
4 changed files
with
4 additions
and
5 deletions
Show diff stats
app/controllers/my_profile/cms_controller.rb
1 | class CmsController < MyProfileController | 1 | class CmsController < MyProfileController |
2 | - | 2 | + |
3 | # FIXME add the access control again | 3 | # FIXME add the access control again |
4 | # protect 'post_content', :profile, :only => [:edit, :new, :reorder, :delete] | 4 | # protect 'post_content', :profile, :only => [:edit, :new, :reorder, :delete] |
5 | 5 |
app/views/cms/text_html_new.rhtml
app/views/cms/view.rhtml
@@ -31,6 +31,7 @@ | @@ -31,6 +31,7 @@ | ||
31 | 31 | ||
32 | <% if @article %> | 32 | <% if @article %> |
33 | <%= link_to_edit_article(@article) %> | 33 | <%= link_to_edit_article(@article) %> |
34 | + <%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => @article }, { :method => :post } %> | ||
34 | <h2><%= @article.name %></h2> | 35 | <h2><%= @article.name %></h2> |
35 | <%= @article.to_html %> | 36 | <%= @article.to_html %> |
36 | <% end %> | 37 | <% end %> |
public/javascripts/noosfero_tiny_mce.js