mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
UX: Show the category name even if there's an image. It's too confusing
otherwise for many sites.
This commit is contained in:
parent
8603f492c7
commit
380411457a
@ -12,16 +12,9 @@ export default Em.Component.extend({
|
||||
buffer.push("<a href='" + Discourse.getURL('/category/') + Discourse.Category.slugFor(category) + "'>");
|
||||
|
||||
var noLogo = Em.isEmpty(logoUrl);
|
||||
if (noLogo || (!Em.isEmpty(category.get('parentCategory')))) {
|
||||
buffer.push(Handlebars.Utils.escapeExpression(category.get('name')));
|
||||
|
||||
if (!noLogo) {
|
||||
buffer.push("<br>");
|
||||
}
|
||||
}
|
||||
|
||||
buffer.push(Handlebars.Utils.escapeExpression(category.get('name')));
|
||||
if (!noLogo) {
|
||||
buffer.push("<img src='" + logoUrl + "' class='category-logo'>");
|
||||
buffer.push("<br><img src='" + logoUrl + "' class='category-logo'>");
|
||||
}
|
||||
buffer.push("</a>");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user