mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-01-12 15:04:59 +08:00
view.layout.menu_bar i18n
This commit is contained in:
@@ -24,10 +24,10 @@ html
|
||||
for hook in selectHook('view.layout.menu_bar')
|
||||
if hook.target
|
||||
li
|
||||
a(href=hook.href, target=hook.target)= hook.body
|
||||
a(href=hook.href, target=hook.target)= t(hook.t_body)
|
||||
else
|
||||
li
|
||||
a(href=hook.href)= hook.body
|
||||
a(href=hook.href)= t(hook.t_body)
|
||||
ul.nav.navbar-nav.navbar-right
|
||||
if account
|
||||
li
|
||||
|
||||
@@ -8,7 +8,7 @@ module.exports = pluggable.createHelpers exports =
|
||||
|
||||
exports.registerHook 'view.layout.menu_bar',
|
||||
href: '/public/monitor/'
|
||||
body: '服务器状态'
|
||||
t_body: 'plugins.linux.server_monitor'
|
||||
|
||||
exports.registerHook 'account.username_filter',
|
||||
filter: (username, callback) ->
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"name": "Linux",
|
||||
"server_monitor": "服务器状态",
|
||||
"description": "Linux 是 RP 主机的基础服务,负责进行资源限制"
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ module.exports = pluggable.createHelpers exports =
|
||||
exports.registerHook 'view.layout.menu_bar',
|
||||
href: '//blog.rpvhost.net'
|
||||
target: '_blank'
|
||||
body: '官方博客'
|
||||
t_body: 'plugins.rpvhost.official_blog'
|
||||
|
||||
exports.registerHook 'billing.payment_methods',
|
||||
widget_generator: (req, callback) ->
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"site_name": "RP 主机",
|
||||
"taobao": "淘宝",
|
||||
"official_blog": "官方博客",
|
||||
"view": {
|
||||
"payment_tips": "拍下对应宝贝后付款即可,购买时注意选择服务器节点选项,备注填写你的用户名。",
|
||||
"go_pay": "淘宝购买",
|
||||
|
||||
@@ -12,7 +12,7 @@ module.exports = pluggable.createHelpers exports =
|
||||
|
||||
exports.registerHook 'view.layout.menu_bar',
|
||||
href: '/wiki/'
|
||||
body: '用户手册'
|
||||
t_body: 'plugins.wiki.'
|
||||
|
||||
for category_name in fs.readdirSync("#{__dirname}/../../WIKI")
|
||||
for file_name in fs.readdirSync("#{__dirname}/../../WIKI/#{category_name}")
|
||||
|
||||
Reference in New Issue
Block a user