diff --git a/app/components/guides-article.js b/app/components/guides-article.js index db024ca..10c16db 100644 --- a/app/components/guides-article.js +++ b/app/components/guides-article.js @@ -89,5 +89,10 @@ export default Component.extend({ codeBlock.innerHTML = lines.join('\n'); }) + }, + actions: { + selectVersion (currentVersion) { + this.selectVersion(currentVersion); + } } }); diff --git a/app/templates/components/guides-article.hbs b/app/templates/components/guides-article.hbs index 4b2b77e..11639ec 100644 --- a/app/templates/components/guides-article.hbs +++ b/app/templates/components/guides-article.hbs @@ -1,8 +1,7 @@ {{#unless (eq version currentVersion)}}
Old Guides - You are viewing the guides for Ember {{version}}. - - {{#link-to 'version.show' 'release' path class="btn"}} VIEW {{currentVersion}} {{/link-to}} +
{{/unless}} diff --git a/app/templates/version/index.hbs b/app/templates/version/index.hbs index b6241be..3dd5133 100644 --- a/app/templates/version/index.hbs +++ b/app/templates/version/index.hbs @@ -1 +1 @@ -{{guides-article model=model.content pages=model.pages path='index' version=model.version currentVersion=model.currentVersion}} +{{guides-article model=model.content pages=model.pages path='index' version=model.version currentVersion=model.currentVersion selectVersion=(action 'selectVersion')}} diff --git a/app/templates/version/show.hbs b/app/templates/version/show.hbs index db4ba84..065a196 100644 --- a/app/templates/version/show.hbs +++ b/app/templates/version/show.hbs @@ -1 +1 @@ -{{guides-article model=model.content pages=model.pages path=model.path version=model.version currentVersion=model.currentVersion}} +{{guides-article model=model.content pages=model.pages path=model.path version=model.version currentVersion=model.currentVersion selectVersion=(action 'selectVersion')}}