From f90e1ce847d3757a527aceb5247de57630ed225f Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 22 Sep 2016 21:13:08 -0400 Subject: [PATCH] FIX: Don't double escape the category title --- .../discourse/components/category-title-link.js.es6 | 11 ++--------- .../{categories_only.hbs => categories-only.hbs} | 0 .../templates/components/category-title-link.hbs | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) rename app/assets/javascripts/discourse/templates/components/{categories_only.hbs => categories-only.hbs} (100%) diff --git a/app/assets/javascripts/discourse/components/category-title-link.js.es6 b/app/assets/javascripts/discourse/components/category-title-link.js.es6 index 5339579de..7c1c01337 100644 --- a/app/assets/javascripts/discourse/components/category-title-link.js.es6 +++ b/app/assets/javascripts/discourse/components/category-title-link.js.es6 @@ -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' }); diff --git a/app/assets/javascripts/discourse/templates/components/categories_only.hbs b/app/assets/javascripts/discourse/templates/components/categories-only.hbs similarity index 100% rename from app/assets/javascripts/discourse/templates/components/categories_only.hbs rename to app/assets/javascripts/discourse/templates/components/categories-only.hbs diff --git a/app/assets/javascripts/discourse/templates/components/category-title-link.hbs b/app/assets/javascripts/discourse/templates/components/category-title-link.hbs index 3034bdd9d..827130eac 100644 --- a/app/assets/javascripts/discourse/templates/components/category-title-link.hbs +++ b/app/assets/javascripts/discourse/templates/components/category-title-link.hbs @@ -3,7 +3,7 @@ {{fa-icon 'lock'}} {{/if}} - {{categoryName}} + {{category.name}} {{#if category.logo_url}}
{{cdn-img src=category.logo_url class="category-logo"}}