fix jade warning

This commit is contained in:
jysperm
2014-07-18 21:57:18 +08:00
parent 052b9e6ad8
commit 5bc0ff7e08
4 changed files with 7 additions and 4 deletions

View File

@@ -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()

View File

@@ -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')

View File

@@ -24,7 +24,7 @@
"start": "make run"
},
"dependencies": {
"jade": "*",
"jade": "^1.3",
"express": "*",
"coffee-script": "*",
"mongodb": "*",

2
start.js Normal file
View File

@@ -0,0 +1,2 @@
require('coffee-script/register');
require('./app.coffee');