feat: export complete Discourse themes ecosystem (16 themes, SCSS, JS components and color schemes)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import Component from "@glimmer/component";
|
||||
import dIcon from "discourse/ui-kit/helpers/d-icon";
|
||||
import { i18n } from "discourse-i18n";
|
||||
import { getTopicStatusBadge } from "../../lib/topic-status-badge";
|
||||
|
||||
export default class TopicStatusColumn extends Component {
|
||||
get badge() {
|
||||
return getTopicStatusBadge(this.args.topic);
|
||||
}
|
||||
|
||||
<template>
|
||||
{{#if this.badge}}
|
||||
<span class="topic-status-card {{this.badge.className}}">{{dIcon
|
||||
this.badge.icon
|
||||
}}<p class="topic-status-card__name">{{i18n this.badge.text}}</p></span>
|
||||
{{/if}}
|
||||
</template>
|
||||
}
|
||||
Reference in New Issue
Block a user