Add additional classes to topic-map stats

This commit is contained in:
Kris 2020-03-25 21:40:51 -04:00 committed by GitHub
parent ecb098bcbb
commit b2aa203e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ createWidget("topic-map-summary", {
html(attrs, state) {
const contents = [];
contents.push(
h("li", [
h("li.created-at", [
h(
"h4",
{
@ -105,7 +105,7 @@ createWidget("topic-map-summary", {
);
contents.push(
h(
"li",
"li.last-reply",
h("a", { attributes: { href: attrs.lastPostUrl } }, [
h(
"h4",
@ -126,7 +126,7 @@ createWidget("topic-map-summary", {
)
);
contents.push(
h("li", [
h("li.replies", [
numberNode(attrs.topicReplyCount),
h(
"h4",
@ -140,7 +140,7 @@ createWidget("topic-map-summary", {
])
);
contents.push(
h("li.secondary", [
h("li.secondary.views", [
numberNode(attrs.topicViews, { className: attrs.topicViewsHeat }),
h(
"h4",
@ -154,7 +154,7 @@ createWidget("topic-map-summary", {
if (attrs.participantCount > 0) {
contents.push(
h("li.secondary", [
h("li.secondary.users", [
numberNode(attrs.participantCount),
h(
"h4",
@ -171,7 +171,7 @@ createWidget("topic-map-summary", {
if (attrs.topicLikeCount) {
contents.push(
h("li.secondary", [
h("li.secondary.likes", [
numberNode(attrs.topicLikeCount),
h(
"h4",
@ -188,7 +188,7 @@ createWidget("topic-map-summary", {
if (attrs.topicLinkLength > 0) {
contents.push(
h("li.secondary", [
h("li.secondary.links", [
numberNode(attrs.topicLinkLength),
h(
"h4",