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:
commit
d3498483ab
3 changed files with 8 additions and 6 deletions
7
core/client/app/components/gh-blog-url.js
Normal file
7
core/client/app/components/gh-blog-url.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
var blogUrl = Ember.Component.extend({
|
||||
tagName: ''
|
||||
});
|
||||
|
||||
export default blogUrl;
|
|
@ -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;
|
1
core/client/app/templates/components/gh-blog-url.hbs
Normal file
1
core/client/app/templates/components/gh-blog-url.hbs
Normal file
|
@ -0,0 +1 @@
|
|||
{{{config.blogUrl}}}
|
Loading…
Add table
Reference in a new issue