|
|
|
@ -64,15 +64,18 @@ class TagsController < ApplicationController
|
|
|
|
|
@forum_tags_num, @attachments_tags_num, @open_source_projects_num = get_tags_size
|
|
|
|
|
|
|
|
|
|
# 获取搜索结果
|
|
|
|
|
@obj,@obj_pages,@results_count,@users_results,
|
|
|
|
|
@obj,
|
|
|
|
|
@obj_pages,
|
|
|
|
|
@results_count,
|
|
|
|
|
@users_results,
|
|
|
|
|
@projects_results,
|
|
|
|
|
@@courses_results,
|
|
|
|
|
@issues_results,
|
|
|
|
|
@bids_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
@attachments_results,
|
|
|
|
|
@contests_tags,
|
|
|
|
|
@open_source_projects_results = refresh_results(@obj_id,@obj_flag,@selected_tags)
|
|
|
|
|
@forums_results,
|
|
|
|
|
attachments_results,
|
|
|
|
|
@contests_results,
|
|
|
|
|
@courses_results,
|
|
|
|
|
@open_source_projects_results= refresh_results(@obj_id,@obj_flag,@selected_tags)
|
|
|
|
|
|
|
|
|
|
# 这里是做tag推荐用的, 用来生产推荐的tags
|
|
|
|
|
unless @obj.nil?
|
|
|
|
@ -97,14 +100,18 @@ class TagsController < ApplicationController
|
|
|
|
|
$related_tags.delete(@tag)
|
|
|
|
|
|
|
|
|
|
# 获取搜索结果
|
|
|
|
|
@obj,@obj_pages,@results_count,@users_results,
|
|
|
|
|
@obj,
|
|
|
|
|
@obj_pages,
|
|
|
|
|
@results_count,
|
|
|
|
|
@users_results,
|
|
|
|
|
@projects_results,
|
|
|
|
|
@@courses_results,
|
|
|
|
|
@issues_results,
|
|
|
|
|
@bids_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
@attachments_results,
|
|
|
|
|
@contests_results = refresh_results(@obj_id,@show_flag)
|
|
|
|
|
@forums_results,
|
|
|
|
|
attachments_results,
|
|
|
|
|
@contests_results,
|
|
|
|
|
@courses_results,
|
|
|
|
|
@open_source_projects_results= refresh_results(@obj_id,@show_flag)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# 删除已选tag
|
|
|
|
@ -116,14 +123,18 @@ class TagsController < ApplicationController
|
|
|
|
|
$selected_tags.delete(@tag)
|
|
|
|
|
|
|
|
|
|
# 获取搜索结果
|
|
|
|
|
@obj,@obj_pages,@results_count,@users_results,
|
|
|
|
|
@obj,
|
|
|
|
|
@obj_pages,
|
|
|
|
|
@results_count,
|
|
|
|
|
@users_results,
|
|
|
|
|
@projects_results,
|
|
|
|
|
@@courses_results,
|
|
|
|
|
@issues_results,
|
|
|
|
|
@bids_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
@attachments_results,
|
|
|
|
|
@contests_results = refresh_results(@obj_id,@show_flag)
|
|
|
|
|
attachments_results,
|
|
|
|
|
@contests_results,
|
|
|
|
|
@courses_results,
|
|
|
|
|
@open_source_projects_results= refresh_results(@obj_id,@show_flag)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def show_all
|
|
|
|
|