0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Always show current year in copyright text on "About" page

no issue
- add `copyrightYear` CP to about page controller
- displays the current year in the copyright notice
This commit is contained in:
James Seymour-Lock 2016-01-23 17:14:12 +00:00
parent 15144dd551
commit 43a7649d44
2 changed files with 11 additions and 3 deletions

View file

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

View file

@ -36,7 +36,7 @@
</section> </section>
<footer class="gh-copyright-info"> <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> <br>
<a href="https://ghost.org/">Ghost</a> is a trademark of the <a href="https://ghost.org/about/">Ghost Foundation</a>. <a href="https://ghost.org/">Ghost</a> is a trademark of the <a href="https://ghost.org/about/">Ghost Foundation</a>.
</footer> </footer>