forked from saurabh/orbit4-5
Fixded context link renderer
This commit is contained in:
parent
3bbb6a482c
commit
08aa3ec753
|
@ -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'
|
|
@ -42,6 +42,8 @@ en:
|
|||
desktop: Desktop
|
||||
homepage: Homepage
|
||||
password: Password
|
||||
all: All
|
||||
add: Add
|
||||
|
||||
site:
|
||||
system_preference: System Preference
|
||||
|
|
|
@ -20,6 +20,8 @@ zh_tw:
|
|||
dashboard_: 儀表版
|
||||
desktop: 桌面
|
||||
password: 密碼
|
||||
all: 全部
|
||||
add: 新增
|
||||
|
||||
site:
|
||||
system_preference: 系統狀態
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue