mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
FIX: Don't double escape the category title
This commit is contained in:
parent
262297965f
commit
f90e1ce847
@ -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 New Issue
Block a user