|
|
|
@ -71,8 +71,8 @@ class TagsController < ApplicationController
|
|
|
|
|
@projects_results,
|
|
|
|
|
@issues_results,
|
|
|
|
|
@bids_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
attachments_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
@attachments_results,
|
|
|
|
|
@contests_results,
|
|
|
|
|
@courses_results,
|
|
|
|
|
@open_source_projects_results= refresh_results(@obj_id,@obj_flag,@selected_tags)
|
|
|
|
@ -107,8 +107,8 @@ class TagsController < ApplicationController
|
|
|
|
|
@projects_results,
|
|
|
|
|
@issues_results,
|
|
|
|
|
@bids_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
attachments_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
@attachments_results,
|
|
|
|
|
@contests_results,
|
|
|
|
|
@courses_results,
|
|
|
|
|
@open_source_projects_results= refresh_results(@obj_id,@show_flag)
|
|
|
|
@ -130,8 +130,8 @@ class TagsController < ApplicationController
|
|
|
|
|
@projects_results,
|
|
|
|
|
@issues_results,
|
|
|
|
|
@bids_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
attachments_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
@attachments_results,
|
|
|
|
|
@contests_results,
|
|
|
|
|
@courses_results,
|
|
|
|
|
@open_source_projects_results= refresh_results(@obj_id,@show_flag)
|
|
|
|
@ -199,7 +199,7 @@ class TagsController < ApplicationController
|
|
|
|
|
@bids_results = nil
|
|
|
|
|
@contests_results = nil
|
|
|
|
|
@forums_results = nil
|
|
|
|
|
attachments_results = nil
|
|
|
|
|
@attachments_results = nil
|
|
|
|
|
@open_source_projects_results = nil
|
|
|
|
|
@obj_pages = nil
|
|
|
|
|
@obj = nil
|
|
|
|
@ -228,8 +228,9 @@ class TagsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
# modifed by Long Jun
|
|
|
|
|
# this is used to find the attachments that came from the same project and tagged with the same tag.
|
|
|
|
|
@result = get_attachments_by_project_tag(selected_tags, @obj)
|
|
|
|
|
@obj_pages, attachments_results, @results_count = for_pagination(@result)
|
|
|
|
|
#@result = get_attachments_by_project_tag(selected_tags, @obj)
|
|
|
|
|
@result = get_attachments_by_tag(selected_tags)
|
|
|
|
|
@obj_pages, @attachments_results, @results_count = for_pagination(@result)
|
|
|
|
|
when '7'
|
|
|
|
|
@obj = Contest.find_by_id(obj_id)
|
|
|
|
|
@obj_pages,@contests_results,@results_count = for_pagination(get_contests_by_tag(selected_tags))
|
|
|
|
@ -249,8 +250,8 @@ class TagsController < ApplicationController
|
|
|
|
|
@projects_results,
|
|
|
|
|
@issues_results,
|
|
|
|
|
@bids_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
attachments_results,
|
|
|
|
|
@forums_results,
|
|
|
|
|
@attachments_results,
|
|
|
|
|
@contests_results,
|
|
|
|
|
@courses_results,
|
|
|
|
|
@open_source_projects_results]
|
|
|
|
|