update table styles

This commit is contained in:
Lee Lawlor
2014-07-31 15:35:21 -04:00
parent bef9ba1f88
commit 5eb5e231d7
19 changed files with 156 additions and 116 deletions

View File

@ -70,6 +70,11 @@ class UsersController < ApplicationController
options = authenticated ? User.private_options : User.public_options(@user)
end
# if html request
if request.format == :html
@channels = @user.channels.public_viewable.paginate :page => params[:page], :order => 'last_entry_id DESC'
end
respond_to do |format|
format.html
format.json { render :json => @user.as_json(options) }