mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-01-12 15:04:59 +08:00
fixbugs
This commit is contained in:
@@ -69,7 +69,12 @@ exports.accountHelpers = (req, res, next) ->
|
||||
t: app.i18n.getTranslator req
|
||||
|
||||
moment: ->
|
||||
return moment.apply(@, arguments).locale(res.language).tz(res.timezone)
|
||||
if res.language and res.language != 'auto'
|
||||
return moment.apply(@, arguments).locale(res.language).tz(res.timezone)
|
||||
else if res.timezone
|
||||
return moment.apply(@, arguments).tz(res.timezone)
|
||||
else
|
||||
return moment.apply(@, arguments)
|
||||
|
||||
_.extend req,
|
||||
res: res
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extends ../layout
|
||||
|
||||
prepend header
|
||||
title #{t('common.financials')} | #{t(config.web.t_name)}
|
||||
title #{t('account.financials')} | #{t(config.web.t_name)}
|
||||
|
||||
block main
|
||||
.row
|
||||
@@ -33,9 +33,9 @@ block main
|
||||
table.table.table-hover
|
||||
thead
|
||||
tr
|
||||
td= t('common.time')
|
||||
td= t('common.details')
|
||||
td= t('common.amount')
|
||||
th= t('common.time')
|
||||
th= t('common.details')
|
||||
th= t('common.amount')
|
||||
tbody
|
||||
for item in billing_log
|
||||
tr
|
||||
|
||||
Reference in New Issue
Block a user