mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-01-12 22:27:09 +08:00
fix jade warning
This commit is contained in:
@@ -6,7 +6,7 @@ $ ->
|
||||
button = $ @
|
||||
prehead = if button.hasClass 'btn-success' then '' else 'un'
|
||||
$.post "/plan/#{prehead}subscribe/", JSON.stringify {
|
||||
plan: button.parent().data 'type'
|
||||
plan: button.parent().parent().data 'type'
|
||||
}
|
||||
.success ->
|
||||
location.reload()
|
||||
|
||||
@@ -38,11 +38,11 @@ block content
|
||||
table.table.table-hover
|
||||
tbody#service
|
||||
for plan in plans
|
||||
tr
|
||||
tr(data-type='#{plan.name}')
|
||||
td= plan.t_name
|
||||
td= plan.t_service
|
||||
td= plan.t_resources
|
||||
td(data-type='#{plan.name}')
|
||||
td
|
||||
if plan.isEnable
|
||||
button.btn.btn-danger.btn-sm= t('plan.unsubscribe')
|
||||
else
|
||||
@@ -51,5 +51,6 @@ block content
|
||||
for widget in widgets
|
||||
.row
|
||||
!= widget.html
|
||||
|
||||
append footer
|
||||
script(src='/script/panel/panel.js')
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"start": "make run"
|
||||
},
|
||||
"dependencies": {
|
||||
"jade": "*",
|
||||
"jade": "^1.3",
|
||||
"express": "*",
|
||||
"coffee-script": "*",
|
||||
"mongodb": "*",
|
||||
|
||||
Reference in New Issue
Block a user