Add group icon to category badges in composer and edit topic title

This commit is contained in:
Neil Lalonde 2014-02-03 17:57:08 -05:00
parent 3bc821aff5
commit fa3927d0f6
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
Discourse.CategoryChooserView = Discourse.ComboboxView.extend({
classNames: ['combobox category-combobox'],
overrideWidths: true,
dataAttributes: ['name', 'color', 'text_color', 'description_text', 'topic_count'],
dataAttributes: ['name', 'color', 'text_color', 'description_text', 'topic_count', 'read_restricted'],
valueBinding: Ember.Binding.oneWay('source'),
content: Em.computed.filter('categories', function(c) {
@ -36,7 +36,7 @@ Discourse.CategoryChooserView = Discourse.ComboboxView.extend({
if (!templateData.color) return text;
var result = "<div class='badge-category' style='background-color: #" + templateData.color + '; color: #' +
templateData.text_color + ";'>" + templateData.name + "</div>";
templateData.text_color + ";'>" + (templateData.read_restricted === 'true' ? "<i class='fa fa-group'></i> " : "") + templateData.name + "</div>";
result += " <div class='topic-count'>&times; " + templateData.topic_count + "</div>";