mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
Add group icon to category badges in composer and edit topic title
This commit is contained in:
parent
3bc821aff5
commit
fa3927d0f6
1 changed files with 2 additions and 2 deletions
|
@ -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'>× " + templateData.topic_count + "</div>";
|
||||
|
||||
|
|
Loading…
Reference in a new issue