aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_user_controller.rb
blob: f62250ce16826152976408737fcca445f59d3954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# app/controllers/admin_user_controller.rb:
# Controller for viewing user accounts from the admin interface.
#
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
# $Id: admin_user_controller.rb,v 1.1 2008-01-22 18:34:15 francis Exp $

class AdminUserController < ApplicationController
    layout "admin"

    def index
        list
        render :action => 'list'
    end

    def list
        @admin_users = User.paginate :order => "name", :page => params[:page], :per_page => 100
    end

    def show
        # Don't use @user as that is any logged in user
        @admin_user = User.find(params[:id])
    end

    private

end