uncomments search knowledge

This commit is contained in:
nigel 2017-02-13 11:11:32 +08:00
parent 4e3ff50396
commit 594210e172
2 changed files with 10 additions and 10 deletions

View File

@ -175,11 +175,11 @@ class RelativeMemosController < ApplicationController
#order_by(:created_time, :desc) #order_by(:created_time, :desc)
#with(:created_time, Date.new(year,01,01)..Date.new(year+1,01,01)) #with(:created_time, Date.new(year,01,01)..Date.new(year+1,01,01))
any_of do # any_of do
# with :parent_id, 0 # # with :parent_id, 0
# with :parent_id, nil # # with :parent_id, nil
with :source, params[:name].downcase # with :source, params[:name].downcase
end # end
paginate :page => params[:page], :per_page => per_page_option paginate :page => params[:page], :per_page => per_page_option
end end
@topics = search.results @topics = search.results

View File

@ -255,13 +255,13 @@
<%= content_tag('span', l(:label_review_num)) %> <%= content_tag('span', l(:label_review_num)) %>
</p> </p>
<p class="stats"> <!-- <p class="stats">
<!--%= link_to project_info.download_num, open_source_project_path(project) %--> <!--%= link_to project_info.download_num, open_source_project_path(project) %-->
<a> <a>
<%= topic.collection_num %> <%#= topic.collection_num %>
</a> </a>
<%= content_tag('span', l(:label_collection_num)) %> <%#= content_tag('span', l(:label_collection_num)) %>
</p> </p> -->
<p class="stats"> <p class="stats">
<!--%= link_to project_info.visit_num, open_source_project_path(project) %--> <!--%= link_to project_info.visit_num, open_source_project_path(project) %-->
@ -297,7 +297,7 @@
<%= content_tag('span', "帖子来源:") %><%= link_to topic.url, topic.url, :onclick => "return user_trace_click_knowledge_in_knowledge_list_after_search('#{topic.id}','#{@topics_pages.page}','#{i+1}','#{request.session_options[:id]}');" %> <%= content_tag('span', "帖子来源:") %><%= link_to topic.url, topic.url, :onclick => "return user_trace_click_knowledge_in_knowledge_list_after_search('#{topic.id}','#{@topics_pages.page}','#{i+1}','#{request.session_options[:id]}');" %>
</div> </div>
<!--<div class="licences">--> <!--<div class="licences">-->
<!--<%= content_tag('span', "数据更新时间:") %><%= content_tag('span', topic.crawled_time) %>--> <!--<%= content_tag('span', "数据更新时间:") %><%#= content_tag('span', topic.crawled_time) %>-->
<!--</div>--> <!--</div>-->
</div> </div>
<div class="tags"> <div class="tags">