##// END OF EJS Templates
remove trailing white-spaces from app/controllers/boards_controller.rb....
Toshi MARUYAMA -
r6679:3fbf8e2382d7
parent child
Show More
@@ -5,12 +5,12
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 #
8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 #
13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -26,7 +26,7 class BoardsController < ApplicationController
26 26 include SortHelper
27 27 helper :watchers
28 28 include WatchersHelper
29
29
30 30 def index
31 31 @boards = @project.boards
32 32 # show the board if there is only one
@@ -43,7 +43,7 class BoardsController < ApplicationController
43 43 sort_update 'created_on' => "#{Message.table_name}.created_on",
44 44 'replies' => "#{Message.table_name}.replies_count",
45 45 'updated_on' => "#{Message.table_name}.updated_on"
46
46
47 47 @topic_count = @board.topics.count
48 48 @topic_pages = Paginator.new self, @topic_count, per_page_option, params['page']
49 49 @topics = @board.topics.find :all, :order => ["#{Message.table_name}.sticky DESC", sort_clause].compact.join(', '),
@@ -61,7 +61,7 class BoardsController < ApplicationController
61 61 }
62 62 end
63 63 end
64
64
65 65 verify :method => :post, :only => [ :destroy ], :redirect_to => { :action => :index }
66 66
67 67 def new
@@ -83,7 +83,7 class BoardsController < ApplicationController
83 83 @board.destroy
84 84 redirect_to_settings_in_projects
85 85 end
86
86
87 87 private
88 88 def redirect_to_settings_in_projects
89 89 redirect_to :controller => 'projects', :action => 'settings', :id => @project, :tab => 'boards'
General Comments 0
You need to be logged in to leave comments. Login now