fixed #4. Removed unnecessary routes and views parts.

This commit is contained in:
George Vinogradov 2011-12-08 18:47:18 +04:00
parent 3e41e6fb42
commit 603e4b3691
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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