|
|
|
@ -253,7 +253,7 @@ class ProjectsController < ApplicationController
|
|
|
|
|
#Added by young
|
|
|
|
|
def homework
|
|
|
|
|
@offset, @limit = api_offset_and_limit({:limit => 10})
|
|
|
|
|
@bids = @project.homeworks
|
|
|
|
|
@bids = @project.homeworks.order('deadline DESC')
|
|
|
|
|
@bids = @bids.like(params[:name]) if params[:name].present?
|
|
|
|
|
@bid_count = @bids.count
|
|
|
|
|
@bid_pages = Paginator.new @bid_count, @limit, params['page']
|
|
|
|
|