Commit 8cf81202fa9e67632e3ce5bd1150112921ec502a

Authored by AntonioTerceiro
1 parent 9cac255d

ActionItem154: minor change: presenting a notice after setting homepage


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1354 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/controllers/my_profile/cms_controller.rb
... ... @@ -84,6 +84,7 @@ class CmsController < MyProfileController
84 84 @article = profile.articles.find(params[:id])
85 85 profile.home_page = @article
86 86 profile.save!
  87 + flash[:notice] = _('Artigo "%s" configurado como página inicial.') % @article.name
87 88 redirect_to :action => 'view', :id => @article.id
88 89 end
89 90  
... ...