mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 07:38:45 -05:00
FIX: Don't double escape the category title
This commit is contained in:
parent
262297965f
commit
f90e1ce847
3 changed files with 3 additions and 10 deletions
|
@ -1,10 +1,3 @@
|
|||
import computed from 'ember-addons/ember-computed-decorators';
|
||||
|
||||
export default Em.Component.extend({
|
||||
tagName: 'h3',
|
||||
|
||||
@computed("category.name")
|
||||
categoryName(name) {
|
||||
return Handlebars.Utils.escapeExpression(name);
|
||||
}
|
||||
export default Ember.Component.extend({
|
||||
tagName: 'h3'
|
||||
});
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{{fa-icon 'lock'}}
|
||||
{{/if}}
|
||||
|
||||
<span class="category-name">{{categoryName}}</span>
|
||||
<span class="category-name">{{category.name}}</span>
|
||||
|
||||
{{#if category.logo_url}}
|
||||
<div>{{cdn-img src=category.logo_url class="category-logo"}}</div>
|
||||
|
|
Loading…
Reference in a new issue