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:
parent
15144dd551
commit
43a7649d44
2 changed files with 11 additions and 3 deletions
|
@ -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();
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue