mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-26 22:16:28 +08:00
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
extends layout
|
|
|
|
prepend header
|
|
title #{t('panel.')} | #{site_name}
|
|
|
|
append header
|
|
link(rel='stylesheet', href='/style/panel.css')
|
|
for hook in applyHooks('view.panel.styles')
|
|
link(rel='stylesheet', href=hook.path)
|
|
|
|
block main
|
|
.row
|
|
header= t('account.financials')
|
|
p #{t('plan.balance')}: #{account.balance.toFixed(2)} #{t('plan.currency.' + config.billing.currency)}
|
|
p
|
|
a(href= '/panel/financials/').btn.btn-success= t('common.charge')
|
|
|
|
.row
|
|
header= t('plan.')
|
|
table.table.table-hover.plan-list
|
|
tbody
|
|
for plan in plans
|
|
tr(data-name='#{plan.name}')
|
|
td
|
|
strong= t(plan.t_name)
|
|
td= t(plan.t_description)
|
|
td
|
|
if account.inPlan(plan.name)
|
|
button.action-leave-plan.btn.btn-danger.btn-sm= t('plan.leave')
|
|
else
|
|
button.action-join-plan.btn.btn-success.btn-sm= t('plan.join')
|
|
|
|
for widget_html in widgets_html
|
|
!= widget_html
|
|
|
|
prepend sidebar
|
|
.row
|
|
p
|
|
a.btn.btn-lg.btn-success(href='/panel/components') 元件详情
|
|
p
|
|
a.btn.btn-lg.btn-success(href='/ticket/list/')= t('ticket.')
|
|
p
|
|
a.btn.btn-lg.btn-success(href='/account/preferences/')= t('account.preferences')
|
|
|
|
append footer
|
|
script(src='/script/panel.js')
|
|
for hook in applyHooks('view.panel.scripts')
|
|
script(src=hook.path)
|