@@ -90,8 +90,9 class MyController < ApplicationController | |||||
90 | # The block is added on top of the page |
|
90 | # The block is added on top of the page | |
91 | # params[:block] : id of the block to add |
|
91 | # params[:block] : id of the block to add | |
92 | def add_block |
|
92 | def add_block | |
93 | @user = self.logged_in_user |
|
|||
94 | block = params[:block] |
|
93 | block = params[:block] | |
|
94 | render(:nothing => true) and return unless block && (BLOCKS.keys.include? block) | |||
|
95 | @user = self.logged_in_user | |||
95 | # remove if already present in a group |
|
96 | # remove if already present in a group | |
96 | %w(top left right).each {|f| (session[:page_layout][f] ||= []).delete block } |
|
97 | %w(top left right).each {|f| (session[:page_layout][f] ||= []).delete block } | |
97 | # add it on top |
|
98 | # add it on top |
@@ -5,7 +5,12 Copyright (C) 2006-2007 Jean-Philippe Lang | |||||
5 | http://redmine.rubyforge.org/ |
|
5 | http://redmine.rubyforge.org/ | |
6 |
|
6 | |||
7 |
|
7 | |||
8 |
== |
|
8 | == xx/xx/2007 v0.4.3 | |
|
9 | ||||
|
10 | * fixed: error when clicking "add" with no block selected on my/page_layout | |||
|
11 | ||||
|
12 | ||||
|
13 | == 02/18/2007 v0.4.2 | |||
9 |
|
14 | |||
10 | * Rails 1.2 is now required |
|
15 | * Rails 1.2 is now required | |
11 | * settings are now stored in the database and editable through the application in: Admin -> Settings (config_custom.rb is no longer used) |
|
16 | * settings are now stored in the database and editable through the application in: Admin -> Settings (config_custom.rb is no longer used) | |
@@ -33,12 +38,12 http://redmine.rubyforge.org/ | |||||
33 | * fixed: crash when a new user try to edit its "my page" layout |
|
38 | * fixed: crash when a new user try to edit its "my page" layout | |
34 |
|
39 | |||
35 |
|
40 | |||
36 |
== 01/03/200 |
|
41 | == 01/03/2007 v0.4.1 | |
37 |
|
42 | |||
38 | * fixed: emails have no recipient when one of the project members has notifications disabled |
|
43 | * fixed: emails have no recipient when one of the project members has notifications disabled | |
39 |
|
44 | |||
40 |
|
45 | |||
41 |
== 01/02/200 |
|
46 | == 01/02/2007 v0.4.0 | |
42 |
|
47 | |||
43 | * simple SVN browser added (just needs svn binaries in PATH) |
|
48 | * simple SVN browser added (just needs svn binaries in PATH) | |
44 | * comments can now be added on news |
|
49 | * comments can now be added on news |
General Comments 0
You need to be logged in to leave comments.
Login now