Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbmike committed Sep 8, 2014
2 parents 34dfb5d + 9b9d807 commit 80d44d2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/controllers/wh/settings/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export default Ember.Controller.extend({
isDeleting: false,

isIndexing: false,
downloadLink: '',
downloadFileName: '',

dataBreakdown: function () {

Expand Down
3 changes: 3 additions & 0 deletions app/routes/wh/settings/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
2 changes: 1 addition & 1 deletion app/templates/components/webhook-blog.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ul>
{{#each post in posts}}
<li>
<a href="http://www.webhook.com/blog/{{unbound post.slug}}">
<a href="http://www.webhook.com/{{unbound post.slug}}">
<h4>{{post.name}}</h4>
<p>{{post.short_version}}</p>
<p class="date">{{format-time post.publish_date}}</p>
Expand Down
9 changes: 8 additions & 1 deletion app/templates/wh/settings/data.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
</section>

<section class="wh-content-edit">

<h4>Data backups</h4>
<p>
Webhook automatically exports a JSON backup every night at 3AM PST. We keep these files around for seven days.
For new sites, the backups will only work for the days after your site was created.
Expand All @@ -95,6 +95,13 @@
{{/each}}
</ul>

<h4>Template and site files backup</h4>
{{#unless buildEnvironment.selfHosted }}
<p>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.</p>

<a class="btn btn-neutral icon icon-download" {{bind-attr download=downloadFileName}} {{bind-attr href=downloadLink}}> Download your website files</a>
{{/unless}}

</section>


Expand Down

0 comments on commit 80d44d2

Please sign in to comment.