mirror of
https://github.com/redmine/redmine.git
synced 2026-09-02 06:46:43 +02:00
Use the main menu for project related actions that support cross-project display.
git-svn-id: http://svn.redmine.org/redmine/trunk@15983 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -19,6 +19,8 @@ class AccountController < ApplicationController
|
||||
helper :custom_fields
|
||||
include CustomFieldsHelper
|
||||
|
||||
self.main_menu = false
|
||||
|
||||
# prevents login action to be filtered by check_if_login_required application scope filter
|
||||
skip_before_action :check_if_login_required, :check_password_change
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class AdminController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
menu_item :projects, :only => :projects
|
||||
menu_item :plugins, :only => :plugins
|
||||
menu_item :info, :only => :info
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class AuthSourcesController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
menu_item :ldap_authentication
|
||||
|
||||
before_action :require_admin
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class CustomFieldEnumerationsController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin
|
||||
before_action :find_custom_field
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class CustomFieldsController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin
|
||||
before_action :build_new_custom_field, :only => [:new, :create]
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
class EmailAddressesController < ApplicationController
|
||||
self.main_menu = false
|
||||
before_action :find_user, :require_admin_or_current_user
|
||||
before_action :find_email_address, :only => [:update, :destroy]
|
||||
require_sudo_mode :create, :update, :destroy
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class EnumerationsController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin, :except => :index
|
||||
before_action :require_admin_or_api_request, :only => :index
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class GroupsController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin
|
||||
before_action :find_group, :except => [:index, :new, :create]
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class IssueStatusesController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin, :except => :index
|
||||
before_action :require_admin_or_api_request, :only => :index
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
class MyController < ApplicationController
|
||||
self.main_menu = false
|
||||
before_action :require_login
|
||||
# let user change user's password when user has to
|
||||
skip_before_action :check_password_change, :only => :password
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class PrincipalMembershipsController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin
|
||||
before_action :find_principal, :only => [:new, :create]
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
class ProjectsController < ApplicationController
|
||||
menu_item :overview
|
||||
menu_item :settings, :only => :settings
|
||||
menu_item :projects, :only => [:index, :new, :create]
|
||||
|
||||
before_action :find_project, :except => [ :index, :list, :new, :create, :copy ]
|
||||
before_action :authorize, :except => [ :index, :list, :new, :create, :copy, :archive, :unarchive, :destroy]
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class RolesController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin, :except => [:index, :show]
|
||||
before_action :require_admin_or_api_request, :only => [:index, :show]
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class SettingsController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
menu_item :plugins, :only => :plugin
|
||||
|
||||
helper :queries
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class TrackersController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin, :except => :index
|
||||
before_action :require_admin_or_api_request, :only => :index
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class UsersController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin, :except => :show
|
||||
before_action :find_user, :only => [:show, :edit, :update, :destroy]
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
class WelcomeController < ApplicationController
|
||||
self.main_menu = false
|
||||
|
||||
def index
|
||||
@news = News.latest User.current
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
class WorkflowsController < ApplicationController
|
||||
layout 'admin'
|
||||
self.main_menu = false
|
||||
|
||||
before_action :require_admin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user