Trying to add repositories to my hierarchy (step 2)
This commit is contained in:
parent
80304ef7f2
commit
40b28e4a84
|
@ -7,10 +7,11 @@
|
|||
= @platform.path
|
||||
|
||||
|
||||
%h2= t('layout.platforms.projects')
|
||||
- @projects.each do |project|
|
||||
= div_for project do
|
||||
= link_to project.name, [@platform, project]
|
||||
= link_to t('layout.projects.new'), new_platform_project_path(@platform)
|
||||
%h2= t('layout.platforms.repositories')
|
||||
- @repositories.each do |repository|
|
||||
= div_for repository do
|
||||
= link_to repository.name, [@platform, repository]
|
||||
= link_to t('layout.repositories.new'), new_platform_repository_path(@platform)
|
||||
|
||||
%h2= t('layout.platforms.products')
|
||||
TBD
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
= t('layout.projects.git_repo_location')
|
||||
= @project.git_repo_path
|
||||
|
||||
= link_to t('layout.projects.back_to_the_list'), platform_path(@platform)
|
||||
= link_to t('layout.projects.back_to_the_list'), platform_repository_path(@repository, @platform)
|
||||
%br/
|
||||
= link_to "git-repo", platform_project_repo_path(@platform, @project)
|
||||
= link_to "git-repo", platform_repository_project_repo_path(@platform, @repository, @project)
|
||||
|
|
|
@ -2,10 +2,12 @@ Rosa::Application.routes.draw do
|
|||
devise_for :users
|
||||
|
||||
resources :platforms do
|
||||
resources :repositories do
|
||||
resources :projects do
|
||||
resource :repo, :controller => "git/repositories", :only => [:show]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
resources :users
|
||||
|
||||
|
|
Loading…
Reference in New Issue