From 3165e7c7c303c0d5ffb6fe55c123fad17859f6d3 Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Tue, 26 Nov 2013 20:46:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=AE=A8=E8=AE=BA?= =?UTF-8?q?=E5=8C=BAmenu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/forums/_forum_list.html.erb | 2 +- config/locales/en.yml | 2 +- config/locales/zh.yml | 1 + lib/redmine.rb | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/forums/_forum_list.html.erb b/app/views/forums/_forum_list.html.erb index 99060bb59..671bb3a0e 100644 --- a/app/views/forums/_forum_list.html.erb +++ b/app/views/forums/_forum_list.html.erb @@ -6,7 +6,7 @@ <%= link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator) %> - +
<%= link_to h(forum.name), forum_path(forum) %> diff --git a/config/locales/en.yml b/config/locales/en.yml index b3c1b2bde..2be259949 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1566,7 +1566,7 @@ en: label_newbie_faq: newbie FAQ label_hot_project: 'HOT Projects' label_memo_create_succ: Memo was successfully created. - + label_project_module_boards: Forums diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 82abf54a4..526f12c56 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -513,6 +513,7 @@ zh: label_software_user: 软件创客 label_contest_innovate: 创新竞赛 label_requirement_enterprise: 软件众包 + label_project_module_boards: 讨论区 label_new_homework: 作业 label_new_contest: 竞赛 label_requirement_focus: 关注需求 diff --git a/lib/redmine.rb b/lib/redmine.rb index a60e50079..1e057e897 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -203,6 +203,8 @@ Redmine::MenuManager.map :top_menu do |menu| menu.push :software_user, {:controller => 'users', :action => 'index'} menu.push :contest_innovate, {:controller => 'bids', :action => 'contest', :project_type => 1} menu.push :requirement_enterprise, {:controller => 'bids', :action => 'index'} + menu.push :project_module_boards, {:controller => 'forums', :action => 'index'} + # menu.push :investor, :home_path # menu.push :theme, :home_path