Sha256: 422c45291411a076dbbb892b4f7375440059e4089d9fa5e66a5cd0a018a156e4

Contents?: true

Size: 1.3 KB

Versions: 27

Compression:

Stored size: 1.3 KB

Contents

#pools-show
  %h2 
    == Runtime Pool: #{@object.name}
  .actions

  %table.data-table
    - %w{ name app_name pool_type size }.each do |method|
      = data_row( method.humanize, @object.send( method ) )

    - unless @object.shared?
      - %w{ available borrowed minimum_instances maximum_instances }.each do |method|
        = data_row( method.humanize, @object.send( method ) )
     
  #evaluate
    %h3 Evaluate Ruby Against This Pool
    #results

    :javascript
      function evaluate_remote() {
        $.post(
          '#{url_for( object_action_path( @object, :evaluate ) )}', 
          $('#script_form').serialize(),
          function( response ) {
            result = response.result
            klass = 'result'
            if (response.exception) {
              klass += ' exception'
              result = response.exception + "\n    " + response.backtrace.join( "\n    " )
            } else {
              result = '' + response.result
            }
            $( '#results' ).append( $( '<pre/>' ).addClass( klass ).text( result ) )
          }
        )
      }

    %form#script_form
      %textarea{:name => 'script'}
        = @script
      %input{:type => 'button', :value => 'Evaluate', :onclick => "javascript:evaluate_remote()"}

  .controls
    = link_to collection_path( :pools ), '<< Back'

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
torquebox-backstage-1.0.7 views/pools/show.haml
torquebox-backstage-1.0.6 views/pools/show.haml
torquebox-backstage-1.0.5 views/pools/show.haml
torquebox-backstage-1.0.4 views/pools/show.haml
torquebox-backstage-1.0.3 views/pools/show.haml
torquebox-backstage-1.0.2 views/pools/show.haml
torquebox-backstage-1.0.1 views/pools/show.haml
torquebox-backstage-1.0.0 views/pools/show.haml
torquebox-backstage-1.0.0.beta2 views/pools/show.haml
torquebox-backstage-1.0.0.beta1 views/pools/show.haml
torquebox-backstage-0.5.4 views/pools/show.haml
torquebox-backstage-0.5.3 views/pools/show.haml
torquebox-backstage-0.5.2 views/pools/show.haml
torquebox-backstage-0.5.1 views/pools/show.haml
torquebox-backstage-0.5 views/pools/show.haml
torquebox-backstage-0.4.3 views/pools/show.haml
torquebox-backstage-0.4.2 views/pools/show.haml
torquebox-backstage-0.4.1 views/pools/show.haml
torquebox-backstage-0.4.0 views/pools/show.haml
torquebox-backstage-0.3.2 views/pools/show.haml