A platform for community discussion. Free, open, simple.
DEV: add plugin connectors to the admin user lists table (#18590)
Jean7718ef97cc8a
diff --git a/app/assets/javascripts/admin/addon/templates/users-list-show.hbs b/app/assets/javascripts/admin/addon/templates/users-list-show.hbsindex 970f9e9b90d..c56b8a08627 100644--- a/app/assets/javascripts/admin/addon/templates/users-list-show.hbs+++ b/app/assets/javascripts/admin/addon/templates/users-list-show.hbs@@ -25,6 +25,8 @@<TableHeaderToggle @field="posts_read" @labelKey="admin.user.posts_read_count" @order={{this.order}} @asc={{this.asc}} @automatic={{true}} /><TableHeaderToggle @field="read_time" @labelKey="admin.user.time_read" @order={{this.order}} @asc={{this.asc}} @automatic={{true}} /><TableHeaderToggle @field="created" @labelKey="created" @order={{this.order}} @asc={{this.asc}} @automatic={{true}} />+ <PluginOutlet @name="admin-users-list-thead-after" @args={{hash order=this.order asc=this.asc}} />+{{#if this.siteSettings.must_approve_users}}<th>{{i18n "admin.users.approved"}}</th>{{/if}}@@ -80,6 +82,8 @@<div>{{format-duration user.created_at_age}}</div></td>+ <PluginOutlet @name="admin-users-list-td-after" @args={{hash user=user query=this.query}} />+{{#if this.siteSettings.must_approve_users}}<td>{{i18n-yes-no user.approved}}</td>{{/if}}