Css class additions (#10532)
* Category Page / Tag Class Additions These additions add: -the name of the tag as a css class to discourse tags. -'pinned' as a css class to pinned topics in the category view
This commit is contained in:
parent
f5eccdd0b8
commit
ce2491dc2f
|
@ -9,7 +9,8 @@ export default Component.extend({
|
|||
classNameBindings: [
|
||||
":latest-topic-list-item",
|
||||
"topic.archived",
|
||||
"topic.visited"
|
||||
"topic.visited",
|
||||
"topic.pinned"
|
||||
],
|
||||
|
||||
showEntrance,
|
||||
|
|
|
@ -16,7 +16,7 @@ export function defaultRenderTag(tag, params) {
|
|||
params = params || {};
|
||||
const visibleName = escapeExpression(tag);
|
||||
tag = visibleName.toLowerCase();
|
||||
const classes = ["discourse-tag"];
|
||||
const classes = ["discourse-tag", tag];
|
||||
const tagName = params.tagName || "a";
|
||||
let path;
|
||||
if (tagName === "a" && !params.noHref) {
|
||||
|
|
Loading…
Reference in New Issue