File tree Expand file tree Collapse file tree 7 files changed +146
-18
lines changed
Expand file tree Collapse file tree 7 files changed +146
-18
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,20 @@ import {
88} from '../constants/es-footer' ;
99
1010export default class EsPageHeader extends Component {
11- currentYear = null
12-
13- constructor ( ) {
14- super ( ) ;
15- this . currentYear = new Date ( ) . getUTCFullYear ( ) ;
16- }
17-
1811 socialLinks = socialLinks
1912
2013 tagline = tagline
2114 contributorLinks = contributorLinks
22- infoLinks = infoLinks
15+
16+ get currentYear ( ) {
17+ return new Date ( ) . getUTCFullYear ( )
18+ }
19+
20+ get infoLinks ( ) {
21+ if ( this . args && this . args . infoLinks ) {
22+ return this . args . infoLinks ;
23+ }
24+
25+ return infoLinks ;
26+ }
2327}
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ export default class EsHeader extends Component {
1515 }
1616
1717 get navLinks ( ) {
18- if ( this . links ) {
19- return this . links ;
18+ if ( this . args . links ) {
19+ return this . args . links ;
2020 }
2121
2222 return defaultLinks ;
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ const infoLinks = [{
5151 href : 'https://emberjs.com/security'
5252} , {
5353 name : 'Legal' ,
54- href : 'https://emberjs.com/legal'
54+ href : 'https://emberjs.com/about/ legal'
5555} , {
5656 name : 'Branding' ,
57- href : 'https://emberjs.com/brand ' ,
57+ href : 'https://emberjs.com/logos ' ,
5858 lineBreak : true
5959} , {
6060 name : 'Community Guidelines' ,
Original file line number Diff line number Diff line change 11<footer class =" es-footer" ...attributes>
22 {{!--
33 Pass footer properties to support
4- {{es-footer tagline="My custom tagline" contributorLinks=myLinks}}
4+ <EsFooter @infoLinks ={{someOtherLinks}} />
55 --}}
6- {{ es-footer/es-info infoLinks =infoLinks }}
6+ < EsFooter::EsInfo @ infoLinks ={{ this. infoLinks}} />
77
88 <hr class =" footer-hr" >
99
10- {{ es-footer/es-statement tagline =tagline socialLinks =socialLinks }}
10+ < EsFooter::EsStatement @ tagline ={{ tagline }} @ socialLinks ={{ socialLinks }} />
1111
1212 <hr class =" footer-hr" >
1313
14- {{ es-footer/es-contributions contributorLinks =contributorLinks }}
15- </footer >
14+ < EsFooter::EsContributions @ contributorLinks ={{ contributorLinks }} />
15+ </footer >
Original file line number Diff line number Diff line change 1515 </button >
1616
1717 <ul class =" navbar-list" >
18- {{ #each navLinks as |link index |}}
18+ {{ #each this. navLinks as |link index |}}
1919 {{ es-header/navbar-link link =link index =index }}
2020 {{ /each }}
2121 </ul >
Original file line number Diff line number Diff line change 2929 "@ember/render-modifiers" : " ^1.0.0" ,
3030 "broccoli-funnel" : " ^2.0.1" ,
3131 "broccoli-merge-trees" : " ^3.0.1" ,
32+ "ember-angle-bracket-invocation-polyfill" : " ^2.0.2" ,
3233 "ember-cli-babel" : " ^7.7.3" ,
3334 "ember-cli-htmlbars" : " ^3.0.1" ,
3435 "ember-cli-postcss" : " ^4.2.0" ,
You can’t perform that action at this time.
0 commit comments