diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index db45df1e5..a624b423b 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -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 diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 711847c32..bd2d52e4b 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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 diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml index c6069946f..b4c388480 100644 --- a/app/views/groups/show.html.haml +++ b/app/views/groups/show.html.haml @@ -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 diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 4ecd0c8f2..55f415002 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -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 diff --git a/config/routes.rb b/config/routes.rb index 41fc838b0..d6d9ed2b6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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