mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 02:33:44 +08:00
2a9dcade0a
Display new features grouped by month and show additional information about the version.
24 lines
627 B
Plaintext
24 lines
627 B
Plaintext
import Component from "@glimmer/component";
|
|
import { tracked } from "@glimmer/tracking";
|
|
import I18n from "discourse-i18n";
|
|
|
|
export default class AdminConfigAreaCard extends Component {
|
|
@tracked collapsed = false;
|
|
|
|
get computedHeading() {
|
|
if (this.args.heading) {
|
|
return I18n.t(this.args.heading);
|
|
}
|
|
return this.args.translatedHeading;
|
|
}
|
|
|
|
<template>
|
|
<section class="admin-config-area-card" ...attributes>
|
|
<h3 class="admin-config-area-card__title">{{this.computedHeading}}</h3>
|
|
<div class="admin-config-area-card__content">
|
|
{{yield}}
|
|
</div>
|
|
</section>
|
|
</template>
|
|
}
|