mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 10:42:45 +03:00
Merge pull request #6372 from jamesslock/copyright-update
Always show current year in copyright text on "About" page
This commit is contained in:
commit
0277d6aa8d
@ -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();
|
||||
})
|
||||
});
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user