OSDN Git Service

indentation corrections
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 28 Jan 2007 00:00:21 +0000 (00:00 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 28 Jan 2007 00:00:21 +0000 (00:00 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@201 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issue_categories_controller.rb
app/controllers/issue_statuses_controller.rb
app/controllers/members_controller.rb
app/controllers/news_controller.rb
app/controllers/reports_controller.rb
app/controllers/roles_controller.rb
app/controllers/trackers_controller.rb

index 1658e98..a718b2c 100644 (file)
@@ -16,9 +16,9 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\r
 \r
 class IssueCategoriesController < ApplicationController
-       layout 'base'\r
-       before_filter :find_project, :authorize\r
-       \r
+  layout 'base'\r
+  before_filter :find_project, :authorize\r
+\r
   def edit
     if request.post? and @category.update_attributes(params[:category])
       flash[:notice] = l(:notice_successful_update)
index 18ca9c7..5c74fbd 100644 (file)
@@ -16,9 +16,9 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\r
 \r
 class IssueStatusesController < ApplicationController\r
-       layout 'base'   
-       before_filter :require_admin\r
-       \r
+  layout 'base'        
+  before_filter :require_admin\r
+\r
   def index
     list
     render :action => 'list' unless request.xhr?
@@ -63,7 +63,5 @@ class IssueStatusesController < ApplicationController
   rescue\r
     flash[:notice] = "Unable to delete issue status"\r
     redirect_to :action => 'list'
-  end\r
-  \r
-       
+  end          
 end
index 089a18e..884454a 100644 (file)
@@ -38,6 +38,5 @@ private
     @project = @member.project\r
   rescue ActiveRecord::RecordNotFound\r
     render_404\r
-  end  
-  
+  end
 end
index 0f2ae85..2afd205 100644 (file)
@@ -16,8 +16,8 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\r
 \r
 class NewsController < ApplicationController\r
-       layout 'base'\r
-       before_filter :find_project, :authorize\r
+  layout 'base'\r
+  before_filter :find_project, :authorize\r
 
   def show
   end
@@ -45,10 +45,10 @@ class NewsController < ApplicationController
     redirect_to :action => 'show', :id => @news\r
   end\r
 
-       def destroy
-               @news.destroy
-               redirect_to :controller => 'projects', :action => 'list_news', :id => @project
-       end\r
+  def destroy
+    @news.destroy
+    redirect_to :controller => 'projects', :action => 'list_news', :id => @project
+  end\r
   \r
 private\r
   def find_project\r
index b825a8a..b27eb19 100644 (file)
@@ -16,9 +16,9 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\r
 \r
 class ReportsController < ApplicationController\r
-       layout 'base'\r
-       before_filter :find_project, :authorize\r
-  \r
+  layout 'base'\r
+  before_filter :find_project, :authorize\r
+\r
   def issue_report\r
     @statuses = IssueStatus.find :all\r
     \r
@@ -104,8 +104,8 @@ private
   rescue ActiveRecord::RecordNotFound\r
     render_404\r
   end\r
-       \r
-       def issues_by_tracker\r
+\r
+  def issues_by_tracker\r
     @issues_by_tracker ||= \r
         ActiveRecord::Base.connection.select_all("select    s.id as status_id, \r
                                                   s.is_closed as closed, \r
@@ -118,9 +118,9 @@ private
                                                   and i.tracker_id=t.id\r
                                                   and i.project_id=#{@project.id}\r
                                                 group by s.id, s.is_closed, t.id")     \r
-       end\r
+  end\r
        \r
-       def issues_by_priority    \r
+  def issues_by_priority    \r
     @issues_by_priority ||= \r
       ActiveRecord::Base.connection.select_all("select    s.id as status_id, \r
                                                   s.is_closed as closed, \r
@@ -133,9 +133,9 @@ private
                                                   and i.priority_id=p.id\r
                                                   and i.project_id=#{@project.id}\r
                                                 group by s.id, s.is_closed, p.id")     \r
-       end\r
+  end\r
        \r
-       def issues_by_category   \r
+  def issues_by_category   \r
     @issues_by_category ||= \r
       ActiveRecord::Base.connection.select_all("select    s.id as status_id, \r
                                                   s.is_closed as closed, \r
@@ -148,9 +148,9 @@ private
                                                   and i.category_id=c.id\r
                                                   and i.project_id=#{@project.id}\r
                                                 group by s.id, s.is_closed, c.id")     \r
-       end\r
+  end\r
        \r
-       def issues_by_author\r
+  def issues_by_author\r
     @issues_by_author ||= \r
       ActiveRecord::Base.connection.select_all("select    s.id as status_id, \r
                                                   s.is_closed as closed, \r
@@ -163,5 +163,5 @@ private
                                                   and i.author_id=a.id\r
                                                   and i.project_id=#{@project.id}\r
                                                 group by s.id, s.is_closed, a.id")     \r
-       end
+  end
 end
index a4bee5d..ed7c6c2 100644 (file)
@@ -16,9 +16,9 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\r
 \r
 class RolesController < ApplicationController\r
-       layout 'base'   \r
-       before_filter :require_admin\r
-       
+  layout 'base'        \r
+  before_filter :require_admin\r
+
   def index
     list
     render :action => 'list' unless request.xhr?
index bbfb4f4..186f8b7 100644 (file)
@@ -56,6 +56,5 @@ class TrackersController < ApplicationController
       @tracker.destroy\r
     end
     redirect_to :action => 'list'
-  end\r
-  
+  end  
 end