Sha256: ef2d4ae965359ccf48f1295c7fcaab819c5f1f8956e987e5f51834d699d7ba97

Contents?: true

Size: 803 Bytes

Versions: 589

Compression:

Stored size: 803 Bytes

Contents

module Caboose
  class StationController < ApplicationController
    layout 'caboose/modal'
    
    # GET /station
    def index
      @user = logged_in_user
      page_id = params['page_id'].nil? ? 1 : params['page_id']
      @page = Page.find(page_id)
      @tab = params['tab']
      
      if (@user.nil? || @user == Caboose::User.logged_out_user)
        redirect_to "/login"
      end
    end
    
    # GET /station/plugin-count
    def plugin_count
      render :json => Caboose::plugins.count  
    end
      
    # PUT /admin/station
    def index_admin
      session[:caboose_station_state]       = params[:state]
      session[:caboose_station_open_tabs]   = params[:open_tabs]
      session[:caboose_station_return_url]  = params[:return_url]
      render :json => true
    end
  end
end

Version data entries

589 entries across 589 versions & 1 rubygems

Version Path
caboose-cms-0.6.27 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.26 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.25 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.24 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.23 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.22 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.21 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.20 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.19 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.18 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.17 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.16 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.15 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.14 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.13 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.12 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.11 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.10 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.9 app/controllers/caboose/station_controller.rb
caboose-cms-0.6.8 app/controllers/caboose/station_controller.rb