Skip to content
This repository has been archived by the owner on Jan 7, 2018. It is now read-only.

Commit

Permalink
Add registration source to user listing page and also search the field.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Feb 24, 2015
1 parent e165eeb commit a653afe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/assets/javascripts/admin/views/api_users/table_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ Admin.ApiUsersTableView = Ember.View.extend({
return time;
},
},
{
data: 'registration_source',
title: 'Registration Source',
defaultContent: '-',
},
{
data: 'api_key_preview',
title: 'API Key',
Expand Down
1 change: 1 addition & 0 deletions app/controllers/api/v1/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def index
{ :last_name => /#{params["search"]["value"]}/i },
{ :email => /#{params["search"]["value"]}/i },
{ :api_key => /#{params["search"]["value"]}/i },
{ :registration_source => /#{params["search"]["value"]}/i },
{ :_id => /#{params["search"]["value"]}/i },
])
end
Expand Down

0 comments on commit a653afe

Please sign in to comment.