Sha256: 9382efb84f884ed21a9f2ac22cc614f8459a8fe4f1a14c654ce4ad41b096ee27

Contents?: true

Size: 660 Bytes

Versions: 7

Compression:

Stored size: 660 Bytes

Contents

class Skyline::Browser::ImagesController < Skyline::ApplicationController
  def index
    @media_dirs = Skyline::MediaDir.group_by_parent_id
    
    if params[:referable_type].present?
      case params[:referable_type]
        when "Skyline::MediaFile" then
          @active_tab = "Skyline::MediaFile"
          @media_file = Skyline::MediaFile.find_by_id(params[:referable_id])
          @media_dir = @media_file.directory if @media_file
        when "Skyline::ReferableUri" then
          @active_tab = "Skyline::ReferableUri"
      end
    end
    
    @active_tab ||= "Skyline::MediaFile"
    
    render :partial => "index"
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
skylinecms-3.3.0 app/controllers/skyline/browser/images_controller.rb
skylinecms-3.2.0 app/controllers/skyline/browser/images_controller.rb
skylinecms-3.1.0 app/controllers/skyline/browser/images_controller.rb
westarete-skylinecms-3.0.8.20100329 app/controllers/skyline/browser/images_controller.rb
westarete-skylinecms-3.0.8.20100330 app/controllers/skyline/browser/images_controller.rb
skylinecms-3.0.8 app/controllers/skyline/browser/images_controller.rb
skylinecms-3.0.7 app/controllers/skyline/browser/images_controller.rb