bug
This commit is contained in:
parent
104e2f8542
commit
0d9453080c
|
@ -12,6 +12,7 @@ class StoresController < ApplicationController
|
|||
reorder("created_on DESC")
|
||||
|
||||
result = resultSet.to_a.dup
|
||||
@result_all_count = result.count;
|
||||
|
||||
resultSet.to_a.map { |res|
|
||||
if(res.container.nil? ||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<div style="margin: 10px 5%;">
|
||||
<div style="margin: 10px 2px;">
|
||||
<%= form_tag( search_stores_path, method: 'post') do %>
|
||||
<%= text_field_tag 'name', params[:name], size:"100", placeholder:'请输入要搜索的关键字', name: "name", :class => 'blueinputbar'%>
|
||||
<%= text_field_tag 'name', params[:name], size:"58", placeholder:'请输入要搜索的关键字', name: "name", :class => 'blueinputbar'%>
|
||||
<div style="display:inline-block; width: 2%;"></div>
|
||||
<%= submit_tag l(:label_search), :class => "enterprise"%>
|
||||
<span class='font_lighter' style="margin-left: 10px;">全站文件搜索。不会搜索私有项目中的内容、学生已经提交的作业。</span>
|
||||
<% end %>
|
||||
</div>
|
|
@ -3,6 +3,7 @@
|
|||
</style>
|
||||
<% content_for :top_field do%>
|
||||
<%= render 'search_bar' %>
|
||||
<span class="font_lighter" style="margin-left: 10px;">找到约 <%= number_with_delimiter(@result_all_count, delimiter:',') %> 条结果</span>
|
||||
<% end %>
|
||||
|
||||
<% @searched_attach.each do |result| %>
|
||||
|
|
|
@ -1647,7 +1647,7 @@ zh:
|
|||
label_course_student: 学生
|
||||
label_homework: 课程作业
|
||||
label_course_file: 资源库 #资料共享
|
||||
label_stores_index: 资源索引
|
||||
label_stores_index: 资源搜索
|
||||
label_course_new_homework: 新建作业
|
||||
label_course_homework_list: 作业列表
|
||||
label_course_homework_new: 发布作业
|
||||
|
|
|
@ -487,7 +487,7 @@ input.blueinputbar:focus {
|
|||
line-height: 1.7em;
|
||||
overflow-wrap: break-word;
|
||||
padding-bottom: 20px;
|
||||
padding-left: 20px;
|
||||
/*padding-left: 20px;*/
|
||||
/*width: 50em;*/
|
||||
}
|
||||
.r1 .cb {
|
||||
|
|
Loading…
Reference in New Issue