diff --git a/app/controllers/wh/settings/data.js b/app/controllers/wh/settings/data.js index 0a5c613d..a525142d 100644 --- a/app/controllers/wh/settings/data.js +++ b/app/controllers/wh/settings/data.js @@ -8,6 +8,8 @@ export default Ember.Controller.extend({ isDeleting: false, isIndexing: false, + downloadLink: '', + downloadFileName: '', dataBreakdown: function () { diff --git a/app/routes/wh/settings/data.js b/app/routes/wh/settings/data.js index e4f45891..edb9c1ce 100644 --- a/app/routes/wh/settings/data.js +++ b/app/routes/wh/settings/data.js @@ -25,6 +25,9 @@ export default Ember.Route.extend({ controller.set('deleteOption', 'data'); controller.set('wordpressFile', null); + controller.set('downloadLink', window.ENV.uploadUrl + 'download/?site=' +this.get('session.site.name') + '&token=' + this.get('session.site.token')); + controller.set('downloadFileName', this.get('buildEnvironment').siteName); + return this._super.apply(this, arguments); } }); diff --git a/app/templates/components/webhook-blog.hbs b/app/templates/components/webhook-blog.hbs index 623f50a8..1281f3a1 100644 --- a/app/templates/components/webhook-blog.hbs +++ b/app/templates/components/webhook-blog.hbs @@ -3,7 +3,7 @@ +

Template and site files backup

+ {{#unless buildEnvironment.selfHosted }} +

This will download your Webhook site directory including all the templates and static files as they exist on the live website. You can use these files to recreate your site locally if need be.

+ +
Download your website files + {{/unless}} +