discourse/app/assets/javascripts/admin/addon/components/admin-plugins-list.gjs
Ella E. b4a376bd9a
DEV: Use reusable d-table instead of admin-only styles (#33531)
Follow up to https://github.com/discourse/discourse/pull/33253

Switches to the generic `d-table` class instead of using the admin
stylesheet. No visual changes, except the badge/status for the API key.

| Before | After |
|--------|--------|
|
![image](https://github.com/user-attachments/assets/e4d1a0ad-8e60-4ad8-b3b1-d17b66b878e8)
|
![image](https://github.com/user-attachments/assets/5bc41353-c4a0-486b-b730-451b9f737341)
|
2025-07-10 19:58:04 -06:00

22 lines
767 B
Text

import { i18n } from "discourse-i18n";
import AdminPluginsListItem from "./admin-plugins-list-item";
const AdminPluginsList = <template>
<table class="d-table admin-plugins-list">
<thead class="d-table__header">
<tr class="d-table__row">
<th class="d-table__header-cell">{{i18n "admin.plugins.name"}}</th>
<th class="d-table__header-cell">{{i18n "admin.plugins.version"}}</th>
<th class="d-table__header-cell">{{i18n "admin.plugins.enabled"}}</th>
<th class="d-table__header-cell"></th>
</tr>
</thead>
<tbody class="d-table__body">
{{#each @plugins as |plugin|}}
<AdminPluginsListItem @plugin={{plugin}} />
{{/each}}
</tbody>
</table>
</template>;
export default AdminPluginsList;