|
|
|
@ -84,7 +84,14 @@ module WelcomeHelper
|
|
|
|
|
def sort_contest_by_hot
|
|
|
|
|
return sort_bid_by_hot_rails 2
|
|
|
|
|
end
|
|
|
|
|
#取得所有活动
|
|
|
|
|
def find_all_activities
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
#取得论坛数据
|
|
|
|
|
def find_hot_forum_topics
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
def sort_project_by_hot_rails project_type
|
|
|
|
|
limit = 10
|
|
|
|
|
project_type == 0 ? Project.find_by_sql("
|
|
|
|
|