From f247ea89b0e4eaa4874fe530f96ad3b8dbbdc4a6 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 3 Jul 2014 11:31:42 -0400 Subject: [PATCH] TWEAK: Show subcategory name even if there is a logo --- .../discourse/components/category-title-link.js.es6 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 96de552c17b..4582e9bb8e6 100644 --- a/app/assets/javascripts/discourse/components/category-title-link.js.es6 +++ b/app/assets/javascripts/discourse/components/category-title-link.js.es6 @@ -11,9 +11,16 @@ export default Em.Component.extend({ buffer.push(""); - if (Em.isEmpty(logoUrl)) { + var noLogo = Em.isEmpty(logoUrl); + if (noLogo || (!Em.isEmpty(category.get('parentCategory')))) { buffer.push(Handlebars.Utils.escapeExpression(category.get('name'))); - } else { + + if (!noLogo) { + buffer.push("
"); + } + } + + if (!noLogo) { buffer.push(""); } buffer.push("
");