From ad099780203c6ca68f794fba68f389b251ea3270 Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 17 Jan 2014 08:55:58 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=BA=93=20->=20?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=B4=A2=E5=BC=95,=20=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_stores.html.erb | 4 ++-- app/views/stores/search.html.erb | 2 +- config/locales/zh.yml | 1 + lib/redmine.rb | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) 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 From 41ed28c6b746d15001346415eba70f5e5d90dce8 Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 17 Jan 2014 09:10:15 +0800 Subject: [PATCH 02/11] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E8=B7=B3=E5=87=BA?= =?UTF-8?q?=E6=96=B0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/stores/index.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/stores/index.html.erb b/app/views/stores/index.html.erb index 5b20e5fbc..ecdc3c290 100644 --- a/app/views/stores/index.html.erb +++ b/app/views/stores/index.html.erb @@ -27,7 +27,7 @@ <%= link_to c1.filename, (attachFromUrl c1), {:title => c1.filename, :target => "_blank"} %> <%= c1.downloads %> - <%= link_to_attachment c1, {:text => image_tag("/images/button/download.png", width: "22px", alt: "l(:button_download)") }%> + <%= link_to_attachment c1, {:text => image_tag("/images/button/download.png", width: "22px", alt: l(:button_download)) }%> <% end %> @@ -38,6 +38,7 @@