mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 05:23:49 +08:00
Add additional classes to topic-map stats
This commit is contained in:
parent
ecb098bcbb
commit
b2aa203e67
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user