mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
glyph in secure categories to the right, like pms
This commit is contained in:
@@ -11,7 +11,7 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
|||||||
templateName: 'topic',
|
templateName: 'topic',
|
||||||
topicBinding: 'controller.content',
|
topicBinding: 'controller.content',
|
||||||
userFiltersBinding: 'controller.userFilters',
|
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',
|
siteBinding: 'Discourse.site',
|
||||||
progressPosition: 1,
|
progressPosition: 1,
|
||||||
menuVisible: true,
|
menuVisible: true,
|
||||||
|
|||||||
@@ -789,3 +789,17 @@
|
|||||||
content: "\f0e0";
|
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,
|
:topic_count,
|
||||||
:description,
|
:description,
|
||||||
:topic_url,
|
:topic_url,
|
||||||
:hotness
|
:hotness,
|
||||||
|
:secure
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ class TopicViewSerializer < ApplicationSerializer
|
|||||||
def categoryName
|
def categoryName
|
||||||
object.topic.category.name
|
object.topic.category.name
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_categoryName?
|
def include_categoryName?
|
||||||
object.topic.category.present?
|
object.topic.category.present?
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user