fixed #4. Removed unnecessary routes and views parts.
This commit is contained in:
parent
3e41e6fb42
commit
603e4b3691
|
@ -26,7 +26,7 @@ class GroupsController < ApplicationController
|
|||
|
||||
def show
|
||||
@platforms = @group.platforms.paginate(:page => params[:platform_page], :per_page => 10)
|
||||
@repositories = @group.repositories.paginate(:page => params[:repository_page], :per_page => 10)
|
||||
# @repositories = @group.repositories.paginate(:page => params[:repository_page], :per_page => 10)
|
||||
@projects = @group.projects.paginate(:page => params[:project_page], :per_page => 10)
|
||||
end
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ class UsersController < ApplicationController
|
|||
def show
|
||||
@groups = @user.groups.uniq
|
||||
@platforms = @user.platforms.paginate(:page => params[:platform_page], :per_page => 10)
|
||||
@repositories = @user.repositories.paginate(:page => params[:repository_page], :per_page => 10)
|
||||
# @repositories = @user.repositories.paginate(:page => params[:repository_page], :per_page => 10)
|
||||
@projects = @user.projects.paginate(:page => params[:project_page], :per_page => 10)
|
||||
end
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
.actions
|
||||
= will_paginate @platforms, :param_name => :platform_page
|
||||
|
||||
.block
|
||||
-#.block
|
||||
.secondary-navigation
|
||||
%ul.wat-cf
|
||||
%li.first.active= link_to t("layout.repositories.list"), repositories_path
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
.actions
|
||||
= will_paginate @platforms, :param_name => :platform_page
|
||||
|
||||
.block
|
||||
-#.block
|
||||
.secondary-navigation
|
||||
%ul.wat-cf
|
||||
%li.first.active= link_to t("layout.repositories.list"), repositories_path
|
||||
|
|
|
@ -124,7 +124,7 @@ Rosa::Application.routes.draw do
|
|||
|
||||
resources :projects, :only => [:new, :create, :index]
|
||||
|
||||
resources :repositories, :only => [:new, :create]
|
||||
# resources :repositories, :only => [:new, :create]
|
||||
end
|
||||
|
||||
match '/catalogs', :to => 'categories#platforms', :as => :catalogs
|
||||
|
|
Loading…
Reference in New Issue