Merge pull request #6372 from jamesslock/copyright-update

Always show current year in copyright text on "About" page
This commit is contained in:
Kevin Ansfield 2016-01-25 13:07:43 +00:00
commit 0277d6aa8d
2 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,9 @@
import Ember from 'ember';
const {Controller} = Ember;
const {
Controller,
computed
} = Ember;
export default Controller.extend({
updateNotificationCount: 0,
@ -9,5 +12,10 @@ export default Controller.extend({
updateNotificationChange(count) {
this.set('updateNotificationCount', count);
}
}
},
copyrightYear: computed(function () {
let date = new Date();
return date.getFullYear();
})
});

View File

@ -36,7 +36,7 @@
</section>
<footer class="gh-copyright-info">
Copyright 2013 - 2016 Ghost Foundation, released under the <a href="https://github.com/TryGhost/Ghost/blob/master/LICENSE">MIT license</a>.
Copyright 2013 - {{copyrightYear}} Ghost Foundation, released under the <a href="https://github.com/TryGhost/Ghost/blob/master/LICENSE">MIT license</a>.
<br>
<a href="https://ghost.org/">Ghost</a> is a trademark of the <a href="https://ghost.org/about/">Ghost Foundation</a>.
</footer>