Changed routes and added some translations

This commit is contained in:
George Vinogradov 2011-10-17 18:24:45 +04:00
parent 0d10c50710
commit 6d065ea01c
2 changed files with 53 additions and 35 deletions

View File

@ -59,6 +59,10 @@ ru:
released_suffix: (выпущена)
confirm_delete: Вы уверены, что хотите удалить эту платформу?
current_platform_header: Текущая платформа
owner: Владелец
visibility: Видимость
platform_type: Тип платформы
distrib_type: Тип дистрибутива
repositories:
list: Список
@ -302,6 +306,8 @@ ru:
project:
name: Название
unixname: Unixname
owner: Владелец
visibility: Видимость
repository_id: Репозиторий
repository: Репозиторий
created_at: Создан

View File

@ -1,6 +1,42 @@
Rosa::Application.routes.draw do
devise_for :users
# resources :platforms do
# member do
# get 'freeze'
# get 'unfreeze'
# get 'clone'
# end
#
# resources :products do
# member do
# get :clone
# get :build
# end
# end
#
# resources :repositories do
# resources :projects do
# resource :repo, :controller => "git/repositories", :only => [:show]
# resources :build_lists, :only => [:index, :show] do
# collection do
# get :recent
# post :filter
# end
# member do
# post :publish
# end
# end
#
# member do
# get :build
# post :process_build
# end
#
# end
# end
# end
resources :platforms do
member do
get 'freeze'
@ -16,48 +52,24 @@ Rosa::Application.routes.draw do
end
resources :repositories do
resources :projects do
resource :repo, :controller => "git/repositories", :only => [:show]
resources :build_lists, :only => [:index, :show] do
collection do
get :recent
post :filter
end
member do
post :publish
end
end
member do
get :build
post :process_build
end
end
end
resources :projects do
resources :build_lists, :only => [:index, :show] do
collection do
get :recent
post :filter
end
member do
post :publish
end
end
end
resources :projects
resources :repositories
resources :users do
resources :platforms, :only => [:new, :create]
resources :projects, :only => [:new, :create]
resources :repositories, :only => [:new, :create]
# resources :groups do
# collection do
# get :add
# end
# member do
# get :add
# end
# end
end
resources :groups do
resources :users, :groups do
resources :platforms, :only => [:new, :create]
resources :projects, :only => [:new, :create]