0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Merge pull request #5221 from rwjblue/undefined-this-in-helpers

Replace gh-blog-url helper with a component.
This commit is contained in:
Jason Williams 2015-05-05 14:28:52 -05:00
commit d3498483ab
3 changed files with 8 additions and 6 deletions

View file

@ -0,0 +1,7 @@
import Ember from 'ember';
var blogUrl = Ember.Component.extend({
tagName: ''
});
export default blogUrl;

View file

@ -1,6 +0,0 @@
import Ember from 'ember';
var blogUrl = Ember.HTMLBars.makeBoundHelper(function () {
return Ember.String.htmlSafe(this.get('config.blogUrl'));
});
export default blogUrl;

View file

@ -0,0 +1 @@
{{{config.blogUrl}}}