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