diff --git a/app/views/layouts/base_stores.html.erb b/app/views/layouts/base_stores.html.erb index 00760263b..7020f8e23 100644 --- a/app/views/layouts/base_stores.html.erb +++ b/app/views/layouts/base_stores.html.erb @@ -25,7 +25,7 @@
- + - +
<%=t(:label_course_file)%><%=t(:label_stores_index)%> <%= l(:label_user_location) %> :
<%= link_to stores_url , stores_url %>

<%=link_to l(:label_home),home_path %> > <%=link_to l(:label_course_file),stores_url %>

<%=link_to l(:label_home),home_path %> > <%=link_to l(:label_stores_index),stores_url %>

diff --git a/app/views/stores/search.html.erb b/app/views/stores/search.html.erb index 1bc63e783..f285fcb67 100644 --- a/app/views/stores/search.html.erb +++ b/app/views/stores/search.html.erb @@ -27,7 +27,7 @@ 下载:<%= result.downloads%>| 大小:<%= number_to_human_size(result.filesize) %>| - 共享者:<%= link_to result.author, user_path(result.author), target: "_blank"%>| + 共享者:<%= link_to result.author, user_path(result.author), target: "_blank" unless result.author.blank? %>| 上传时间:<%= format_time(result.created_on) %>
diff --git a/config/locales/zh.yml b/config/locales/zh.yml index c90a45656..0d2536c0c 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -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: 发布作业 diff --git a/lib/redmine.rb b/lib/redmine.rb index cd13fddd0..a013ebaca 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -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