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