A bunch of tweaks to the Users directory

- Move user directory from `/directory` to `/users/`
- Defaults to 'weekly' time period
- Don't include deleted topics/posts in the results
- Move heart icon to header instead of on each row
- "Users" instead of "Users found"
This commit is contained in:
Robin Ward
2015-03-19 11:48:16 -04:00
parent f807527650
commit 7ef306cd3b
19 changed files with 87 additions and 106 deletions

View File

@ -25,6 +25,9 @@ class UsersController < ApplicationController
:authorize_email,
:password_reset]
def index
end
def show
@user = fetch_user_from_params
user_serializer = UserSerializer.new(@user, scope: guardian, root: 'user')