mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 23:33:56 +08:00
914f93b896
* Simplify config nav link generation to always inject the Settings tab * Auto-redirect to the first non-settings config link (if there is one) when the user lands on /admin/plugins/:plugin_id * Add `extras` to admin plugin serializer so plugins can add more data on first load * Add PikadayCalendar page object for system specs, extracted from the CalendarDateTimePicker to make it more generic.
23 lines
590 B
Plaintext
23 lines
590 B
Plaintext
import i18n from "discourse-common/helpers/i18n";
|
|
|
|
const AdminPluginConfigMetadata = <template>
|
|
<div class="admin-plugin-config-page__metadata">
|
|
<div class="admin-plugin-config-area__metadata-title">
|
|
<h2>
|
|
{{@plugin.nameTitleized}}
|
|
</h2>
|
|
<p>
|
|
{{@plugin.about}}
|
|
{{#if @plugin.linkUrl}}
|
|
|
|
|
<a href={{@plugin.linkUrl}} rel="noopener noreferrer" target="_blank">
|
|
{{i18n "admin.plugins.learn_more"}}
|
|
</a>
|
|
{{/if}}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</template>;
|
|
|
|
export default AdminPluginConfigMetadata;
|