Commit 9a5e1c66a8f75ed6496af2fdba14e1457bab1bce
1 parent
4d431fb7
Exists in
master
and in
29 other branches
ActionItem296: editing header/footer
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2347 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
app/controllers/my_profile/profile_editor_controller.rb
... | ... | @@ -49,4 +49,14 @@ class ProfileEditorController < MyProfileController |
49 | 49 | render :partial => 'shared/select_categories', :locals => {:object_name => 'profile_data', :multiple => true}, :layout => false |
50 | 50 | end |
51 | 51 | |
52 | + def header_footer | |
53 | + if request.post? | |
54 | + @profile.update_attributes!(:custom_footer => params[:custom_footer], :custom_header => params[:custom_header]) | |
55 | + redirect_to :action => 'index' | |
56 | + else | |
57 | + @header = boxes_holder.custom_header | |
58 | + @footer = boxes_holder.custom_footer | |
59 | + end | |
60 | + end | |
61 | + | |
52 | 62 | end | ... | ... |