feat(xo-server-backup-reports): add plugin version in footer (#23)

This commit is contained in:
Julien Fontanet 2017-11-20 10:20:40 +01:00 committed by GitHub
parent 98f5db9fbd
commit 4ee0944037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,8 @@ import humanFormat from 'human-format'
import moment from 'moment-timezone'
import { forEach, startCase } from 'lodash'
import pkg from '../package'
export const configurationSchema = {
type: 'object',
@ -237,6 +239,12 @@ class BackupReportsXoPlugin {
)
}
markdown.push(
'---',
'',
`*${pkg.name} v${pkg.version}*`
)
markdown = markdown.join('\n')
const xo = this._xo