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.5.225 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.224 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.223 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.222 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.221 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.220 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.219 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.218 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.217 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.216 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.215 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.214 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.213 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.212 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.211 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.210 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.209 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.208 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.207 app/controllers/caboose/station_controller.rb
caboose-cms-0.5.206 app/controllers/caboose/station_controller.rb