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'
|
gem 'ad_banner', git: 'git@gitlab.tp.rulingcom.com:saurabh/adbanner-test.git'
|
|
@ -42,6 +42,8 @@ en:
|
||||||
desktop: Desktop
|
desktop: Desktop
|
||||||
homepage: Homepage
|
homepage: Homepage
|
||||||
password: Password
|
password: Password
|
||||||
|
all: All
|
||||||
|
add: Add
|
||||||
|
|
||||||
site:
|
site:
|
||||||
system_preference: System Preference
|
system_preference: System Preference
|
||||||
|
|
|
@ -20,6 +20,8 @@ zh_tw:
|
||||||
dashboard_: 儀表版
|
dashboard_: 儀表版
|
||||||
desktop: 桌面
|
desktop: 桌面
|
||||||
password: 密碼
|
password: 密碼
|
||||||
|
all: 全部
|
||||||
|
add: 新增
|
||||||
|
|
||||||
site:
|
site:
|
||||||
system_preference: 系統狀態
|
system_preference: 系統狀態
|
||||||
|
|
|
@ -6,7 +6,6 @@ module ContextLinkRenderer
|
||||||
@belong_module_app = belong_module_app
|
@belong_module_app = belong_module_app
|
||||||
@request = request
|
@request = request
|
||||||
@params = params
|
@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
|
||||||
|
|
||||||
end
|
end
|
Loading…
Reference in New Issue