This commit is contained in:
yanxd 2014-01-18 10:52:05 +08:00
parent 104e2f8542
commit 0d9453080c
5 changed files with 8 additions and 4 deletions

View File

@ -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? ||

View File

@ -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>

View File

@ -3,6 +3,7 @@
</style>
<% content_for :top_field do%>
<%= render 'search_bar' %>
<span class="font_lighter" style="margin-left: 10px;">找到约&nbsp;<%= number_with_delimiter(@result_all_count, delimiter:',') %>&nbsp;条结果</span>
<% end %>
<% @searched_attach.each do |result| %>

View File

@ -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: 发布作业

View File

@ -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 {