资源库 -> 资源索引, 判断搜索结果

This commit is contained in:
yanxd 2014-01-17 08:55:58 +08:00
parent b2bdf0c640
commit ad09978020
4 changed files with 5 additions and 4 deletions

View File

@ -25,7 +25,7 @@
<div class="top-content">
<table>
<tr>
<td class="info_font" style="width: 240px; color: #15bccf"><%=t(:label_course_file)%></td>
<td class="info_font" style="width: 240px; color: #15bccf"><%=t(:label_stores_index)%></td>
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
<td rowspan="2" width="250px">
<div class="top-content-search" style="display:none;">
@ -39,7 +39,7 @@
</tr>
<tr>
<td style="padding-left: 8px"><%= link_to stores_url , stores_url %></td>
<td><p class="top-content-list"><%=link_to l(:label_home),home_path %> > <%=link_to l(:label_course_file),stores_url %> </p></td>
<td><p class="top-content-list"><%=link_to l(:label_home),home_path %> > <%=link_to l(:label_stores_index),stores_url %> </p></td>
</tr>
</table>
</div>

View File

@ -27,7 +27,7 @@
<span class="gray blue-color">
下载:<%= result.downloads%>|
大小:<%= number_to_human_size(result.filesize) %>|
共享者:<a class="gray" ><%= link_to result.author, user_path(result.author), target: "_blank"%></a>|
共享者:<a class="gray" ><%= link_to result.author, user_path(result.author), target: "_blank" unless result.author.blank? %></a>|
上传时间:<%= format_time(result.created_on) %>
</span>
<div style="display: none"></div>

View File

@ -1646,6 +1646,7 @@ zh:
label_course_student: 学生
label_homework: 课程作业
label_course_file: 资源库 #资料共享
label_stores_index: 资源索引
label_course_new_homework: 新建作业
label_course_homework_list: 作业列表
label_course_homework_new: 发布作业

View File

@ -204,7 +204,7 @@ Redmine::MenuManager.map :top_menu do |menu|
menu.push :contest_innovate, {:controller => 'bids', :action => 'contest', :project_type => 1}
menu.push :requirement_enterprise, {:controller => 'bids', :action => 'index'}
menu.push :project_module_forums, :forums_path
menu.push :course_file, :stores_path
menu.push :stores_index, :stores_path
# menu.push :investor, :home_path