admin页面增加组织列表

This commit is contained in:
sw 2015-03-05 15:27:22 +08:00
parent 45fe622f26
commit 5f8595d874
5 changed files with 11 additions and 0 deletions

View File

@ -322,4 +322,11 @@ class AdminController < ApplicationController
end
end
#组织
def organization
@organizations = Organization.all
respond_to do |format|
format.html
end
end
end

View File

@ -0,0 +1 @@
111

View File

@ -538,6 +538,7 @@ zh:
label_project: 项目
label_activity_project: '项目: ' #added by bai
label_organization_list: 组织列表
label_project_plural: 项目列表
label_first_page_made: 首页定制
label_project_first_page: 项目托管平台首页

View File

@ -646,6 +646,7 @@ RedmineApp::Application.routes.draw do
match 'admin/info', :via => :get
match 'admin/test_email', :via => :get
match 'admin/default_configuration', :via => :post
get 'admin/organization'
resources :auth_sources do
member do

View File

@ -360,6 +360,7 @@ Redmine::MenuManager.map :homework_menu do |menu|
end
########end
Redmine::MenuManager.map :admin_menu do |menu|
menu.push :organization, {:controller => 'admin', :action => 'organization'}, :caption => :label_organization_list
menu.push :projects, {:controller => 'admin', :action => 'projects'}, :caption => :label_project_plural
menu.push :users, {:controller => 'admin', :action => 'users'}, :caption => :label_user_plural
menu.push :first_page_made, {:controller => 'admin',:action => 'first_page_made'},:caption => :label_first_page_made