mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
glyph in secure categories to the right, like pms
This commit is contained in:
parent
eb71e9de24
commit
7e1c5ae5b7
@ -11,7 +11,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
||||
templateName: 'topic',
|
||||
topicBinding: 'controller.content',
|
||||
userFiltersBinding: 'controller.userFilters',
|
||||
classNameBindings: ['controller.multiSelect:multi-select', 'topic.archetype'],
|
||||
classNameBindings: ['controller.multiSelect:multi-select', 'topic.archetype', 'topic.category.secure:secure_category'],
|
||||
siteBinding: 'Discourse.site',
|
||||
progressPosition: 1,
|
||||
menuVisible: true,
|
||||
|
@ -789,3 +789,17 @@
|
||||
content: "\f0e0";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.secure_category .gutter {
|
||||
position: relative;
|
||||
&:before {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
color: rgba($black, 0.05);
|
||||
font: 90px/1 FontAwesome;
|
||||
content: "\f0c0";
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ class BasicCategorySerializer < ApplicationSerializer
|
||||
:topic_count,
|
||||
:description,
|
||||
:topic_url,
|
||||
:hotness
|
||||
:hotness,
|
||||
:secure
|
||||
|
||||
end
|
||||
|
@ -128,6 +128,7 @@ class TopicViewSerializer < ApplicationSerializer
|
||||
def categoryName
|
||||
object.topic.category.name
|
||||
end
|
||||
|
||||
def include_categoryName?
|
||||
object.topic.category.present?
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user