Fixded context link renderer

This commit is contained in:
Saurabh Bhatia 2014-04-15 10:45:55 +08:00
parent 3bbb6a482c
commit 08aa3ec753
4 changed files with 6 additions and 3 deletions

View File

@ -1,2 +1,2 @@
gem 'announcement', git: '/Users/saurabhbhatia/announcement-test'
gem 'announcement', git: 'git@gitlab.tp.rulingcom.com:saurabh/announcement-test.git'
gem 'ad_banner', git: 'git@gitlab.tp.rulingcom.com:saurabh/adbanner-test.git'

View File

@ -42,6 +42,8 @@ en:
desktop: Desktop
homepage: Homepage
password: Password
all: All
add: Add
site:
system_preference: System Preference

View File

@ -20,6 +20,8 @@ zh_tw:
dashboard_: 儀表版
desktop: 桌面
password: 密碼
all: 全部
add: 新增
site:
system_preference: 系統狀態

View File

@ -6,7 +6,6 @@ module ContextLinkRenderer
@belong_module_app = belong_module_app
@request = request
@params = params
content_tag :li, link_to(content_tag(:span, I18n.t(@label_i18n)), eval(@path)), :class => (active? ? 'active' : nil)
content_tag :li, link_to(content_tag(:span, I18n.t(@label_i18n)), Rails.application.routes.url_helpers.send(@path)), :class => (active? ? 'active' : nil)
end
end