Some tweaks to sub-category badges

This commit is contained in:
Neil Lalonde 2014-03-21 15:33:30 -04:00
parent 256186c836
commit c3c5ac3ef7
2 changed files with 9 additions and 2 deletions

View File

@ -104,11 +104,11 @@ Discourse.HTML = {
if (opts.showParent && category.get('parent_category_id')) {
var parent = Discourse.Category.findById(category.get('parent_category_id'));
html = "<a class='badge-category-parent' style=\"" + (Discourse.HTML.categoryStyle(parent)||'') +
html = "<span class='badge-wrapper'><a class='badge-category-parent' style=\"" + (Discourse.HTML.categoryStyle(parent)||'') +
"\" href=\"" + url + "\"><span class='category-name'>" +
(Em.get(parent, 'read_restricted') ? "<i class='fa fa-group'></i> " : "") +
Em.get(parent, 'name') + "</span></a>" +
html;
html + "</span>";
}
return html;

View File

@ -24,6 +24,13 @@
white-space: nowrap;
display: inline-block;
line-height: 1;
i.fa {
font-size: 11px;
vertical-align: 1px;
}
}
.badge-wrapper {
white-space: nowrap;
}
.badge-category {