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:
Jordan Vidrine 2020-08-26 12:21:47 -05:00 committed by GitHub
parent f5eccdd0b8
commit ce2491dc2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,8 @@ export default Component.extend({
classNameBindings: [
":latest-topic-list-item",
"topic.archived",
"topic.visited"
"topic.visited",
"topic.pinned"
],
showEntrance,

View File

@ -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) {