From daea3bb687b85276c783a4841e2873b0b3c720ea Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Tue, 17 Feb 2015 13:33:43 +0530 Subject: [PATCH] UX: add user invite link on admin interface --- app/assets/javascripts/admin/routes/admin-users-list.js.es6 | 4 ++++ app/assets/javascripts/admin/templates/users_list.hbs | 1 + config/locales/client.en.yml | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/app/assets/javascripts/admin/routes/admin-users-list.js.es6 b/app/assets/javascripts/admin/routes/admin-users-list.js.es6 index 1fcc89095..5a028a969 100644 --- a/app/assets/javascripts/admin/routes/admin-users-list.js.es6 +++ b/app/assets/javascripts/admin/routes/admin-users-list.js.es6 @@ -7,6 +7,10 @@ export default Discourse.Route.extend({ Discourse.ExportCsv.exportUserList().then(outputExportResult); }, + sendInvites: function() { + this.transitionTo('user.invited', Discourse.User.current()); + }, + deleteUser: function(user) { Discourse.AdminUser.create(user).destroy({ deletePosts: true }); } diff --git a/app/assets/javascripts/admin/templates/users_list.hbs b/app/assets/javascripts/admin/templates/users_list.hbs index bbc7709e5..45879d1b6 100644 --- a/app/assets/javascripts/admin/templates/users_list.hbs +++ b/app/assets/javascripts/admin/templates/users_list.hbs @@ -13,6 +13,7 @@
+ {{d-button action="sendInvites" title="admin.invite.button_title" icon="envelope" label="admin.invite.button_text"}} {{d-button action="exportUsers" title="admin.export_csv.button_title.user" icon="download" label="admin.export_csv.button_text"}}
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 684535c61..cf2535701 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -1741,6 +1741,10 @@ en: screened_ip: "Export full screened IP list in CSV format." screened_url: "Export full screened URL list in CSV format." + invite: + button_text: "Send Invites" + button_title: "Send Invites" + customize: title: "Customize" long_title: "Site Customizations"