mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
TWEAK: Show subcategory name even if there is a logo
This commit is contained in:
parent
a4a90475cf
commit
f247ea89b0
1 changed files with 9 additions and 2 deletions
|
@ -11,9 +11,16 @@ export default Em.Component.extend({
|
|||
|
||||
buffer.push("<a href='" + Discourse.getURL('/category/') + Discourse.Category.slugFor(category) + "'>");
|
||||
|
||||
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("<br>");
|
||||
}
|
||||
}
|
||||
|
||||
if (!noLogo) {
|
||||
buffer.push("<img src='" + logoUrl + "' class='category-logo'>");
|
||||
}
|
||||
buffer.push("</a>");
|
||||
|
|
Loading…
Reference in a new issue