@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class AccountController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | helper :custom_fields |
|
21 | 20 | include CustomFieldsHelper |
|
22 | 21 |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class AdminController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :require_admin |
|
21 | 20 | |
|
22 | 21 | helper :sort |
@@ -18,6 +18,8 | |||
|
18 | 18 | require 'uri' |
|
19 | 19 | |
|
20 | 20 | class ApplicationController < ActionController::Base |
|
21 | layout 'base' | |
|
22 | ||
|
21 | 23 | before_filter :user_setup, :check_if_login_required, :set_localization |
|
22 | 24 | filter_parameter_logging :password |
|
23 | 25 |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class AttachmentsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :find_project |
|
21 | 20 | |
|
22 | 21 | def show |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class AuthSourcesController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :require_admin |
|
21 | 20 | |
|
22 | 21 | def index |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class BoardsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :find_project, :authorize |
|
21 | 20 | |
|
22 | 21 | helper :messages |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class CustomFieldsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :require_admin |
|
21 | 20 | |
|
22 | 21 | def index |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class DocumentsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :find_project, :only => [:index, :new] |
|
21 | 20 | before_filter :find_document, :except => [:index, :new] |
|
22 | 21 | before_filter :authorize |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class EnumerationsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :require_admin |
|
21 | 20 | |
|
22 | 21 | def index |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class IssueCategoriesController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | menu_item :settings |
|
21 | 20 | before_filter :find_project, :authorize |
|
22 | 21 |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class IssueRelationsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :find_project, :authorize |
|
21 | 20 | |
|
22 | 21 | def new |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class IssueStatusesController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :require_admin |
|
21 | 20 | |
|
22 | 21 | verify :method => :post, :only => [ :destroy, :create, :update, :move ], |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class IssuesController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | menu_item :new_issue, :only => :new |
|
21 | 20 | |
|
22 | 21 | before_filter :find_issue, :only => [:show, :edit, :reply, :destroy_attachment] |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class JournalsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :find_journal |
|
21 | 20 | |
|
22 | 21 | def edit |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class MembersController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :find_member, :except => :new |
|
21 | 20 | before_filter :find_project, :only => :new |
|
22 | 21 | before_filter :authorize |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class MessagesController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | menu_item :boards |
|
21 | 20 | before_filter :find_board, :only => [:new, :preview] |
|
22 | 21 | before_filter :find_message, :except => [:new, :preview] |
@@ -16,11 +16,10 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class MyController < ApplicationController |
|
19 | helper :issues | |
|
20 | ||
|
21 | layout 'base' | |
|
22 | 19 | before_filter :require_login |
|
23 | 20 | |
|
21 | helper :issues | |
|
22 | ||
|
24 | 23 | BLOCKS = { 'issuesassignedtome' => :label_assigned_to_me_issues, |
|
25 | 24 | 'issuesreportedbyme' => :label_reported_issues, |
|
26 | 25 | 'issueswatched' => :label_watched_issues, |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class NewsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :find_news, :except => [:new, :index, :preview] |
|
21 | 20 | before_filter :find_project, :only => [:new, :preview] |
|
22 | 21 | before_filter :authorize, :except => [:index, :preview] |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class ProjectsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | menu_item :overview |
|
21 | 20 | menu_item :activity, :only => :activity |
|
22 | 21 | menu_item :roadmap, :only => :roadmap |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class QueriesController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | menu_item :issues |
|
21 | 20 | before_filter :find_query, :except => :new |
|
22 | 21 | before_filter :find_optional_project, :only => :new |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class ReportsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | menu_item :issues |
|
21 | 20 | before_filter :find_project, :authorize |
|
22 | 21 |
@@ -23,7 +23,6 class ChangesetNotFound < Exception; end | |||
|
23 | 23 | class InvalidRevisionParam < Exception; end |
|
24 | 24 | |
|
25 | 25 | class RepositoriesController < ApplicationController |
|
26 | layout 'base' | |
|
27 | 26 | menu_item :repository |
|
28 | 27 | before_filter :find_repository, :except => :edit |
|
29 | 28 | before_filter :find_project, :only => :edit |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class RolesController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :require_admin |
|
21 | 20 | |
|
22 | 21 | verify :method => :post, :only => [ :destroy, :move ], |
@@ -16,8 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class SearchController < ApplicationController |
|
19 | layout 'base' | |
|
20 | ||
|
21 | 19 | before_filter :find_optional_project |
|
22 | 20 | |
|
23 | 21 | helper :messages |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class SettingsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :require_admin |
|
21 | 20 | |
|
22 | 21 | def index |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class TimelogController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | menu_item :issues |
|
21 | 20 | before_filter :find_project, :authorize |
|
22 | 21 |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class TrackersController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :require_admin |
|
21 | 20 | |
|
22 | 21 | def index |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class UsersController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :require_admin |
|
21 | 20 | |
|
22 | 21 | helper :sort |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class VersionsController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | menu_item :roadmap |
|
21 | 20 | before_filter :find_project, :authorize |
|
22 | 21 |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class WatchersController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | before_filter :find_project |
|
21 | 20 | before_filter :require_login, :check_project_privacy, :only => [:watch, :unwatch] |
|
22 | 21 | before_filter :authorize, :only => :new |
@@ -16,7 +16,6 | |||
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class WelcomeController < ApplicationController |
|
19 | layout 'base' | |
|
20 | 19 | |
|
21 | 20 | def index |
|
22 | 21 | @news = News.latest User.current |
General Comments 0
You need to be logged in to leave comments.
Login now