Sha256: 000a7d77a37d0d3cf6459ad3c7c0d923031e647d1404d20cdbafef0d2ac247ee

Contents?: true

Size: 590 Bytes

Versions: 10

Compression:

Stored size: 590 Bytes

Contents

class Admin::DialogsController < Admin::BaseController

  layout 'admin_dialog'

  def show
    @dialog_type = params[:id].try(:downcase)

    if @dialog_type
      @submit_button_text = "Insert"

      url_params = params.reject {|key, value| key =~ /(action)|(controller)/}

      if @dialog_type == 'image'
        @iframe_src = insert_admin_images_url(:dialog => true)
      elsif @dialog_type == 'link'
        @iframe_src = link_to_admin_pages_dialogs_url(url_params)
      end

      render :layout => false #"admin_dialog"

    else
      render :nothing => true
    end
  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
jacobat-refinerycms-0.9.6.14 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.6.14 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.6.13 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.6.12 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.6.11 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.6.10 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.6.9 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.6.8 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.6.7 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb
refinerycms-0.9.6.6 vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb