Sha256: 75147b000ec6c3c71de0b392146f06bca936e00e29feb57b04b8175e1ad54d64

Contents?: true

Size: 770 Bytes

Versions: 32

Compression:

Stored size: 770 Bytes

Contents

class IndexController < ArtfullyOseController

  skip_before_filter :authenticate_user!, :only => [:index]

  def index
    redirect_to admin_root_path if admin_signed_in?
  end

  def login_success
    redirect_to root_path
  end

  def recent_activity
    @recent_actions = Action.recent(current_user.current_organization).where('import_id is null').page(params[:page]).per_page(10)
    render 'index/_recent_activity', :layout => false
  end

  def dashboard
    if current_user.is_in_organization?
      @events = current_user.current_organization.events.includes(:shows, :venue).order('updated_at DESC').limit(4)
      @recent_actions = Action.recent(current_user.current_organization).where('import_id is null').page(params[:page]).per_page(10)
    end
  end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
artfully_ose-1.3.0.pre4 app/controllers/index_controller.rb
artfully_ose-1.3.0.pre3 app/controllers/index_controller.rb
artfully_ose-1.3.0.pre2 app/controllers/index_controller.rb
artfully_ose-1.3.0.pre1 app/controllers/index_controller.rb
artfully_ose-1.2.0 app/controllers/index_controller.rb
artfully_ose-1.2.0.beta.1 app/controllers/index_controller.rb
artfully_ose-1.2.0.alpha.2 app/controllers/index_controller.rb
artfully_ose-1.2.0.alpha.1 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.27 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.26 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.24 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.23 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.21 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.20 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.19 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.18 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.17 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.16 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.15 app/controllers/index_controller.rb
artfully_ose-1.2.0.pre.12 app/controllers/index_controller.rb