UX: add user invite link on admin interface

This commit is contained in:
Arpit Jalan 2015-02-17 13:33:43 +05:30
parent 73a59322d5
commit daea3bb687
3 changed files with 9 additions and 0 deletions

View file

@ -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 });
}

View file

@ -13,6 +13,7 @@
</ul>
</div>
<div class="pull-right">
{{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"}}
</div>
</div>

View file

@ -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"