|
|
|
@ -255,8 +255,14 @@ class UsersController < ApplicationController
|
|
|
|
|
type_list = ["System"]
|
|
|
|
|
when "interactive"
|
|
|
|
|
type_list = ["Comment", "Mentioned", "Praise", "Fan"]
|
|
|
|
|
when 'project_package'
|
|
|
|
|
type_list = ['Created', 'Destroyed', 'Bidding', 'BiddingEnd', 'BiddingWon', 'BiddingLost']
|
|
|
|
|
end
|
|
|
|
|
@tids = @tids.where(:tiding_type => type_list)
|
|
|
|
|
|
|
|
|
|
if params[:type] == 'project_package'
|
|
|
|
|
@tids = @tids.where(container_type: 'ProjectPackage')
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
@new_tids_count = @tids.where("created_at > '#{@onclick_time}'").count
|
|
|
|
|
@new_mess_count = @user.private_messages.where("status = 0").group(:target_id).length
|
|
|
|
|